Docker upgrade failure: The aufs storage-driver is no longer supported
Solution 1:
From the official Docker documentation - how to configure your storage driver to use OverlayFS
instead of AUFS
.
-
Stop Docker.
sudo systemctl stop docker
-
Copy the contents of
/var/lib/docker
to a temporary location.cp -au /var/lib/docker /var/lib/docker.bk
-
Edit
/etc/docker/daemon.json
. If it does not yet exist, create it. Assuming that the file was empty, add the following contents.{ "storage-driver": "overlay2" }
Docker does not start if the daemon.json file contains badly-formed JSON.
-
Start Docker.
sudo systemctl start docker
-
Verify that the daemon is using the overlay2 storage driver. Use the docker info command and look for Storage Driver and Backing filesystem.
$ docker info Containers: 0 Images: 0 Storage Driver: overlay2 Backing Filesystem: xfs Supports d_type: true Native Overlay Diff: true <...>
Docker is now using the overlay2
storage driver.
You then need to recreate your containers and fetch all images again with the new storage driver in place. Mapped container data in volumes should be unaltered.
After this, you can remove the directory /var/lib/docker/aufs
and proceed with upgrading the Docker package.