Skip to content

Instantly share code, notes, and snippets.

@techiesathya
Created June 17, 2017 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save techiesathya/ba05e4ed2de5ff870b23b3af00dce91f to your computer and use it in GitHub Desktop.
Save techiesathya/ba05e4ed2de5ff870b23b3af00dce91f to your computer and use it in GitHub Desktop.
Installing docker in Ubuntu
# Command to add GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Command to add docker repository to APT source
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# Update package database
sudo apt-get update
# Command to install from Docker repo instead of Ubuntu repo
apt-cache policy docker-ce
# Command to install docker
sudo apt-get install -y docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment