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

后端 未结 4 1945
南方客
南方客 2020-12-29 06:44

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:

相关标签:
4条回答
  • 2020-12-29 07:24

    There are some problems with the kernel in ubuntu so the best way to run docker is with this line:

    sudo docker -d --storage-driver=overlay
    
    0 讨论(0)
  • 2020-12-29 07:25

    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.

    0 讨论(0)
  • 2020-12-29 07:26

    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?.

    0 讨论(0)
  • 2020-12-29 07:36

    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
    0 讨论(0)
提交回复
热议问题