Life In The Stack Trace...

TODO: <Insert clever marketing phrase here>

Install Docker 1.12.0 on Ubuntu 16.04.1 LTS (Xenial Xerus)

The following are the steps I took to install Docker 1.12.0 on Ubuntu 16.04.1 LTS (Xenial Xerus).

I read and followed the instructions at: https://docs.docker.com/engine/installation/linux/ubuntulinux/

Update your apt sources

sudo apt update asdf

Update package information, ensure that APT works with the https method, and that CA certificates are installed.

sudo apt-get 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

Open the /etc/apt/sources.list.d/docker.list file in your favorite editor. If the file doesn’t exist, create it.

sudo nano /etc/apt/sources.list.d/docker.list

Add the following to the file:

deb https://apt.dockerproject.org/repo ubuntu-xenial main

The instructions state to verify that APT is pulling from the right repository, however, I already verified it earlier, so, I choose to simply update apt.

sudo apt update

For Ubuntu Trusty, Wily, and Xenial, it’s recommended to install the linux-image-extra kernel package. The linux-image-extra package allows you use the aufs storage driver.

sudo apt-get install linux-image-extra-$(uname -r)

Install Docker.

sudo apt-get install docker-engine

Start the docker daemon.

sudo service docker start

Verify docker is installed correctly.

sudo docker run hello-world

On my install of Ubuntu, the group docker already existed, so, I simply added my user to the docker group.

# replace $USER with your user name
sudo usermod -aG docker $USER

At this point, Docker 1.12.0 was installed and working.