Skip to content

Instantly share code, notes, and snippets.

@debemdeboas
Last active January 21, 2022 23:20
Show Gist options
  • Save debemdeboas/280994a58c469fee6bb51ce59628f1d3 to your computer and use it in GitHub Desktop.
Save debemdeboas/280994a58c469fee6bb51ce59628f1d3 to your computer and use it in GitHub Desktop.
Install Docker on Ubuntu
# https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
echo "Installing Docker engine from the APT repository"
sudo apt update
sudo apt install \
ca-certificates \
curl \
gnupg \
lsb-release -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment