Sort instruction overview on how to install Docker (Not how to upgrade!).
Update package information, ensure that APT works with the https method, and that CA certificates are installed.
sudo apt-get update && 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.
Remove any existing entries.
Add following entry for your Ubuntu 16.04 (as for now) operating system:
# deb https://apt.dockerproject.org/repo ubuntu-wily main deb https://apt.dockerproject.org/repo ubuntu-xenial testing
Update the APT package index, purge the old repo if it exist (sudo apt-get purge lxc-docker and verify that APT is pulling from the right repository.
sudo apt-get update && sudo apt-cache policy docker-engine
From now on when you run apt-get upgrade, APT pulls from the new repository.
For Ubuntu 15.10 Wily, it’s recommended to install the linux-image-extra kernel package. The linux-image-extra package allows you use the aufs storage driver.
To install the linux-image-extra package for your (uname -r) kernel version:
Update your package manager and Install the recommended package.
sudo apt-get update && sudo apt-get install linux-image-extra-$(uname -r)
Go ahead and install Docker.
Make sure you have installed the prerequisites for your Ubuntu version.
Then, install Docker using the following:
1. Log into your Ubuntu installation as a user with sudo privileges.
2. Update your APT package index and install Docker:
sudo apt-get update && sudo apt-get install docker-engine
3. Start the docker daemon.
sudo service docker start
4. Verify docker is installed correctly.
sudo docker run hello-world
This command downloads a test image and runs it in a container. When the container runs, it prints an informational message. Then, it exits.
Below a list of web-links to further ideas. These links can die over time. Once in a while we will check for dead links, but no guarantee given!