Error "Unable to connect to the Docker daemon. Is docker -d on this host?" after updating the Linux kernel

I am using Ubuntu 14.04 with docker v1.8.2. Docker works long before that. Then I just upgraded my Linux kernel from 3.16 to 4.05, and now the dockers are broken.

docker images

simlw@sim-lw:~$ docker images
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

ps auxww | grep docker

simlw@sim-lw:~$ ps auxww | grep docker   
simlw    23085  0.0  0.0  15976  2276 pts/24   S+   13:12   0:00 grep --color=auto docker 

sudo docker -d

simlw@sim-lw:~$ sudo docker -d
Warning: '-d' is deprecated, it will be removed soon. See usage.
WARN[0000] please use 'docker daemon' instead.          
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) 
ERRO[0000] [graphdriver] prior storage driver "aufs" failed: driver not supported 
FATA[0000] Error starting daemon: error initializing graphdriver: driver not supported 

Does anyone know how to solve this? thanks in advance.

Note that I already read Unable to connect to the Docker daemon. Does "docker -d" work on this host? and Docker Daemon is not working , and both of them do not help me.

+4
source share
3 answers

Ubuntu AUFS 3.18, OverlayFS Linux. , docker AUFS, /var/lib/docker/aufs. , , -s --storage-driver= .

, , , OverlayFS, : sudo docker daemon -s overlay. , , /etc/default/docker, :

# Force OverlayFS for storage driver
DOCKER_OPTS="$DOCKER_OPTS -s overlay"
+6

Debian Jessie , linux-image-4.2, aufs.

- docker aufs. , , , !

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

0

docker root, :

sudo usermod -aG docker <userid>

. ​​ , :

sudo service docker restart
0

Source: https://habr.com/ru/post/1611235/


All Articles