Skip to content

Instantly share code, notes, and snippets.

@ionutale
Created November 1, 2021 08:19
Show Gist options
  • Save ionutale/f53de5200599c32d610c00bf9e4ebb3d to your computer and use it in GitHub Desktop.
Save ionutale/f53de5200599c32d610c00bf9e4ebb3d to your computer and use it in GitHub Desktop.
install-docker-in-ubuntu
# Update the apt package index and install packages to allow apt to use a repository over HTTPS
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
# Add Docker’s official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# The following command is to set up the stable repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu `lsb_release -cs` stable"
# Update the apt package index, and install the latest version of Docker Engine and containerd, or go to the next step to install a specific version
sudo apt update
sudo apt install -y docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment