gpt4 book ai didi

docker - 错误 "Cannot connect to the Docker daemon. Is ' docker -d' 在此主机上运行?” 升级 Linux 内核后

转载 作者:行者123 更新时间:2023-12-04 16:34:40 25 4
gpt4 key购买 nike

我正在使用 Ubuntu 14.04 和 docker v1.8.2。 Docker 之前运行良好。然后我刚刚将我的 Linux 内核从 3.16 升级到 4.05,现在 docker 坏了。
docker 图片

simlw@sim-lw:~$ docker images
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
ps auxww | 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
须藤 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
有谁知道如何解决这个问题?提前致谢。
请注意我已经阅读了 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?Docker Daemon not running ,他们两个都帮不了我。

最佳答案

Ubuntu 从其内核包版本 3.18 起就不再支持 AUFS,因为从那个版本 OverlayFS 是 Linux 内核的一部分。我认为您的 docker 守护进程正在尝试使用 AUFS 驱动程序,因为您有一个 /var/lib/docker/aufs文件夹。无论如何,您可以使用 -s 强制使用正确的存储驱动程序。或 --storage-driver=运行 docker 守护进程时的选项。

首先,要测试守护进程是否与 OverlayFS 存储驱动程序一起工作,请在终端中运行守护进程:sudo docker daemon -s overlay .一旦你测试它工作正常,你可以修改它永久编辑文件/etc/default/docker ,添加下一行:

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

关于docker - 错误 "Cannot connect to the Docker daemon. Is ' docker -d' 在此主机上运行?” 升级 Linux 内核后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33073931/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com