Ubuntu and updating Docker

Since I lost half an hour on this, maybe it will help some people out there. What I had to do to upgrade my version is:

curl -L "https://github.com/docker/compose/releases/download/1.13.0/docker-compose-$(uname -s)-$(uname -m)" > ./docker-compose
sudo mv ./docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose

Use the last version of docker compose instead of 1.13.0.


Try this stuff :

sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list"
sudo aptitude update
sudo aptitude install lxc-docker

If this is not working, lets do it via third party :

$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
$ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
$ sudo apt-get update
$ sudo apt-get install lxc-docker

What you now have to do is to update docker-composer because your docker is up to date.

https://docs.docker.com/compose/install/

curl -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s'-'uname -m' > /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose


Try this, it is quite simple:

sudo apt-get update
sudo apt-get upgrade docker-ce

Results in the following

docker-ce is already the newest version.