Skip to content

Instantly share code, notes, and snippets.

@indykish
Forked from katopz/install-docker-exp.sh
Last active July 31, 2018 04:43
  • Star 6 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save indykish/a6facea4748dc578abbaf2b09065ead5 to your computer and use it in GitHub Desktop.
Install Docker 1.12 on Ubuntu Xenial 16.04.1 x64
# Install Docker on Xenial 16.04.1 x64
# Ref https://docs.docker.com/engine/installation/linux/ubuntulinux/
# No interactive for now.
export DEBIAN_FRONTEND=noninteractive
# Update your APT package index.
sudo apt-get -y update
# Update package information, ensure that APT works with the https method, and that CA certificates are installed.
sudo apt-get -y install apt-transport-https ca-certificates
# Add the new GPG key.
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# Add docker.list
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-xenial experimental" > /etc/apt/sources.list.d/docker.list
# Update your APT package index.
sudo apt-get -y update
# Purge the old repo if it exists.
sudo apt-get purge lxc-docker
# Verify that APT is pulling from the right repository.
sudo apt-cache policy docker-engine
# Install the recommended package.
sudo apt-get -y install linux-image-extra-$(uname -r)
# Install Docker.
sudo apt-get -y install docker-engine
# Start the docker daemon.
sudo service docker start
# Validate docker version
docker -v
@settermjd
Copy link

I'm on Ubuntu 16.04 and docker-engine's not in the repository after doing all this. Is there a step which you left out?

@thanhpk
Copy link

thanhpk commented Mar 25, 2017

You install the lastest docker, not the 1.12

@alpha-beta-soup
Copy link

alpha-beta-soup commented Apr 21, 2017

You can pick a version, e.g.

sudo apt-cache policy docker-engine
sudo apt-get -y install docker-engine=1.13.1-0~ubuntu-trusty

Without this I was getting docker 17.03.0-ce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment