What precautions to take when upgrading from lxc-docker to docker-engine?

2

I currently have lxc-docker-1.4.1 installed in my ubuntu 14.04.

I want to upgrade to the latest docker.

The official docker docs on upgrading will install package docker-engine.

curl -sSL https://get.docker.com/ | sh

Should I remove lxc-docker manually? Will it preserve my /var/lib/docker installed images ? Will it be backward compatible ?

Bon Ami

Posted 2015-08-20T19:12:13.850

Reputation: 123

Answers

2

On my Ubuntu 15.04 machine, I managed to upgrade from 1.6 to 1.8 by first removing docker and then installing. Seemed to work fine and my images were still there.

As a precaution though, I created backups of all my installed images. I followed the instructions from "Docker container: Backup and Recovery" guide.

However, on my Ubuntu 14.04.3 machine, after upgrading, the docker daemon wouldn't start. The error was "[graphdriver] prior storage driver "aufs" failed: driver not supported".

I found that deleting the /var/lib/docker/aufs directory and /var/lib/docker/repositories-aufs file sorted out the problem, and the daemon started fine. Nothing was lost.

Chris Stefano

Posted 2015-08-20T19:12:13.850

Reputation: 36

Thanks. I did a backup first as per your advice. Things are hunky dory now. – Bon Ami – 2015-08-24T16:01:31.820

You can also install linux-image-extra to get aufs. – Mitar – 2015-11-29T00:07:32.123

I manually installed kernel 4.4 on ubuntu 14.04 and also had to remove the mentioned file + directory to make docker start again. – cweiske – 2016-01-11T08:42:34.657