Installing Docker 1.12 on Ubuntu

I have an Ubuntu VM on my laptop and I’d like to install the Docker 1.12 engine on it. I’ve followed the directions here:

Install Docker Engine on Ubuntu | Docker Docs

I initially tried with Trusty but then tried again with Xenial too, in both cases I never recieved any errors but when I used apt-get to install Docker it installed version 1.11.2, build b9f10c9 instead. :frowning:

Can anyone help me get this up to a 1.12 release?

Docker 1.12 didnot release you only can install 1.12 RC4 now.but you have to change source.list to use Trusty testing (not main)

deb ubuntu-trusty main
deb ubuntu-trusty testing

1 Like

Were the following commands run?

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates

sudo apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

Add to /etc/apt/sources.list.d/docker.list
deb ubuntu-trusty main

sudo apt-get update

sudo apt-get purge lxc-docker

apt-cache policy docker-engine

To upgrade to new version:

apt-get upgrade

I use experimental instead (judge from repos folder)
here’s modified script from Docker doc.

sudo echo "deb ubuntu-trusty experimental" > /etc/apt/sources.list.d/docker.list

And here’s full blog post


Ok that did the trick. A shame the Docker 1.12 installation instructions are still pointing to “main” though :slight_smile:

I tried switching main for testing and experimental and in both cases ran the following after updating the docker.list file:

sudo apt-get upgrade
sudo apt-get update
sudo apt-get install docker

Now I have noticed that if I run the sudo apt-cache policy docker-engine command, I get the following:

Installed: 1.11.2-0~trusty
Candidate: 1.12.0~rc4-0~xenial
Version table:
1.12.0~rc4-0~xenial 0
500 ubuntu-xenial/experimental amd64 Packages
1.12.0~rc3-0~xenial 0
500 ubuntu-xenial/experimental amd64 Packages