Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

prior storage driver "aufs" failed: driver not supported Error starting daemon: error initializing graphdriver: driver not supported

When a try to run docker locally in ubuntu 14.04 when i run this line in the console:

sudo docker -d 

The console show me this error:

Warning: '-d' is deprecated, it will be removed soon. See usage.
WARN[0000] please use 'docker daemon' instead.          
ERRO[0000] [graphdriver] prior storage driver "aufs" failed: driver not supported 
FATA[0000] Error starting daemon: error initializing graphdriver: driver not supported 
like image 749
Hetdev Avatar asked Oct 27 '15 00:10

Hetdev


People also ask

Does Ubuntu support AUFS?

For Docker EE, AUFS is supported on Ubuntu. If you use Ubuntu, you need to add the AUFS module to the kernel. If you do not install these packages, you need to use overlay2 . AUFS cannot use the following backing filesystems: aufs , btrfs , or ecryptfs .

What is Docker storage driver?

The storage driver controls how images and containers are stored and managed on your Docker host. After you have read the storage driver overview, the next step is to choose the best storage driver for your workloads. Use the storage driver with the best overall performance and stability in the most usual scenarios.

What is Docker overlay2?

The overlay2 driver natively supports up to 128 lower OverlayFS layers. This capability provides better performance for layer-related Docker commands such as docker build and docker commit , and consumes fewer inodes on the backing filesystem.


3 Answers

Try removing all downloaded images:

sudo rm /var/lib/docker/aufs -rf

That helped me to recover docker after a kernel update.

Related issues on the github:

  • https://github.com/docker/docker/issues/14026
  • https://github.com/docker/docker/issues/15651
like image 139
Sergey Podobry Avatar answered Nov 13 '22 00:11

Sergey Podobry


I had the same problem after a kernel update that removed the AUFS driver. What fixed it was:

sudo apt-get install linux-image-extra-`uname -r` && sudo modprobe aufs

If future updates break the driver again, bundle the command with your update:

sudo apt-get update && sudo apt-get upgrade && apt-get -y install linux-image-extra-$(uname -r) aufs-tools

For differences between apt-get upgrade and dist-upgrade, see Why use apt-get upgrade instead of apt-get dist-upgrade?.

like image 38
Dan Dascalescu Avatar answered Nov 13 '22 01:11

Dan Dascalescu


As mentioned in ask Ubuntu, unfortunately you have to completely purge your previous docker installation by running:

sudo apt-get purge docker-engine

resp.

sudo apt-get purge docker.io

then you have to remove /var/lib/docker (Or move it to a different name, if you first want to try if everything works.)

sudo rm /var/lib/docker

resp.

sudo mv /var/lib/docker /var/lib/docker.old

Afterwards you can install the docker-engine package again.

The same procedure applies for debian.

like image 6
white_gecko Avatar answered Nov 13 '22 02:11

white_gecko