S0-E4/E30 :)

docker-icon

Prerequisites

First check from which repository you have installed your docker.

In my case it was docker.io with apt-get install docker.io.

Check with command:

sudo apt list | egrep -i "docker" | egrep -i "installed"

This will list you all packages you have installed named "docker" and that have "installed" information. Something like this:

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

docker/trusty-updates,now 1.5-1 amd64 [installed]
docker.io/trusty-updates,now 1.6.2~dfsg1-1ubuntu4~14.04.1 amd64 [installed]

BTW - you can ignore the warning for this command - because we only checked which packages are installed, not performing actual installing via apt.

If you see something different then docker-ce or docker-ee - then it means you have an older version like docker.io / docker-engine.

That means - You classified to be upgraded ! :)

Manual upgrade with aptitude.

First make update on packages:

sudo apt-get update

Then purge packages that are old:

sudo apt-get purge -y docker.io docker-engine

Then install latest docker (EE - Enterprice Edition, CE- Community Edition) : docker-ce /docker-ee: ! WARNING - please be careful - you should change the "ubuntu-trusty" to your distribution name.

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-trusty main'
sudo apt-get update
sudo apt-get install -y docker-ce

Upgrade using docker-machine

If you have used docker-machine and created a Virtual Host, than you can just type:

docker-machine upgrade default

where "default" is the name of your machine config.

BTW - you actually can use docker-machine to manage an physical machine with docker installed Check this issue on docker-machine repository.

Final result

You should have a fully working docker with latest engine and now be able to use commands like i.e. "docker network"

Acknowledgements

Thanks!

That's it :) Comment, share or don't :)

If you have any suggestions what I should blog about in the next articles - please give me a hint :)

See you tomorrow! Cheers!



Comments

comments powered by Disqus