gpt4 book ai didi

docker - CentOS 7 - 无法在 unix :///var/run/docker. sock 连接到 Docker 守护程序。 docker 守护进程是否正在运行?

转载 作者:行者123 更新时间:2023-12-04 19:31:49 35 4
gpt4 key购买 nike

我尝试在 中安装 docker CentOS 7 并得到守护程序错误。我尝试了互联网上所有可用的安装和调试方法,但没有一个真正奏效!我什至尝试安装也不起作用的旧版本的 docker。

SELinux 被禁用。

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

docker 版本
Client:
Version: 1.13.1
API version: 1.26
Package version:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

systemctl 状态 docker.service -l
Redirecting to /bin/systemctl status  -l docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2020-04-10 18:00:02 CEST; 49min ago
Docs: http://docs.docker.com
Process: 4510 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
Main PID: 4510 (code=exited, status=1/FAILURE)

Apr 10 18:00:01 ns3138286 systemd[1]: Starting Docker Application Container Engine...
Apr 10 18:00:01 ns3138286 dockerd-current[4510]: time="2020-04-10T18:00:01.506877169+02:00" level=info msg="libcontainerd: new containerd process, pid: 4522"
Apr 10 18:00:02 ns3138286 dockerd-current[4510]: time="2020-04-10T18:00:02.514107274+02:00" level=error msg="'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded."
Apr 10 18:00:02 ns3138286 dockerd-current[4510]: Error starting daemon: error initializing graphdriver: driver not supported
Apr 10 18:00:02 ns3138286 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Apr 10 18:00:02 ns3138286 systemd[1]: Failed to start Docker Application Container Engine.
Apr 10 18:00:02 ns3138286 systemd[1]: Unit docker.service entered failed state.
Apr 10 18:00:02 ns3138286 systemd[1]: docker.service failed.

最佳答案

如果没有更多详细信息,很难为这个问题提供准确的解决方案,但是,错误消息很清楚:

'overlay' not found as a supported filesystem on this host



请注意:

To configure Docker to use the overlay storage driver your Docker host must be running version 3.18 of the Linux kernel (preferably newer) with the overlay kernel module loaded.



使用 uname -r 检查内核版本

如果您在安装 docker 后安装了新内核,请尝试重新启动您的机器。

如果 您不需要显式覆盖,您也可以在 /etc/docker/daemon.json 中指定存储驱动程序文件 - 'devicemapper' 是不支持覆盖的内核的首选存储驱动程序。

关于docker - CentOS 7 - 无法在 unix :///var/run/docker. sock 连接到 Docker 守护程序。 docker 守护进程是否正在运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61143767/

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