I’ve had the following error a number of times after updating Ubuntu so I figured I should post something about it (I’m bound to forget the solution) as the first “fix” I came across wasn’t actually an appropriate fix – I’ll go more into this later.
ERRO [graphdriver] prior storage driver “aufs” failed: driver not supported
FATA Error starting daemon: error initializing graphdriver: driver not supported
If you’re receiving the error above after a Ubuntu upgrade, the reason may be related to not having the correct kernel packages installed. There’s details on how to reinstall these at https://docs.docker.com/engine/installation/linux/ubuntu/#prerequisites. In a nutshell, here are the commands (you may need to reboot afterwards).
sudo apt-get update sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
N.B. As mentioned by viker in the comments below, you may also need to perform the following command.
sudo modprobe aufs
I got this solution from the issue posted at https://github.com/docker/docker/issues/14026. The problem with that issue log is that the first “fix” mentioned is to remove “/var/lib/docker/aufs” which will remove your containers… this isn’t ideal. Thing is, the solution I suggest above is actually mentioned much further down the post and is only a very fleeting mention so if you’re impatient (like I am the majority of the time), you may totally miss it and delete “/var/lib/docker/aufs” in your frustration in finding an answer (proud to say I didn’t do this because deletion to fix something makes my infrastructure “spidey-sense” tingle).