Skip to content

Instantly share code, notes, and snippets.

@fxp
Last active December 8, 2016 05:44
Show Gist options
  • Save fxp/26a266e249dd3d6afd104004c1a9affc to your computer and use it in GitHub Desktop.
Save fxp/26a266e249dd3d6afd104004c1a9affc to your computer and use it in GitHub Desktop.
Install Docker on Ubuntu
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv \
--keyserver hkp://ha.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609
# Ubuntu version Repository
# Precise 12.04 (LTS) deb https://apt.dockerproject.org/repo ubuntu-precise main
# Trusty 14.04 (LTS) deb https://apt.dockerproject.org/repo ubuntu-trusty main
# Wily 15.10 deb https://apt.dockerproject.org/repo ubuntu-wily main
# Xenial 16.04 (LTS) deb https://apt.dockerproject.org/repo ubuntu-xenial main
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
apt-cache policy docker-engine
# Verify docker is installed
docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment