Skip to content

Instantly share code, notes, and snippets.

@cseelye
Last active November 4, 2022 13:26
Show Gist options
  • Save cseelye/3956776a2e56c256f4c942ec3c95ce2a to your computer and use it in GitHub Desktop.
Save cseelye/3956776a2e56c256f4c942ec3c95ce2a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euETo pipefail
shopt -s inherit_errexit
sudo rm -f /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install --yes --no-install-recommends \
ca-certificates \
curl \
gnupg \
lsb-release \
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install --yes --no-install-recommends \
docker-ce \
docker-ce-cli \
containerd.io \
docker-compose-plugin
sudo usermod -aG docker ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment