CentOS 7-无法通过unix:///var/run/docker.sock连接到Docker守护程序。泊坞窗守护程序正在运行吗?

时间:2020-04-10 15:44:58

标签: docker centos

我尝试在 CentOS 7 中安装docker并出现守护程序错误。我尝试了Internet上用于安装和调试的所有方法,但没有一种有效!我什至尝试安装也不起作用的旧版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 <​​/ strong>

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.

1 个答案:

答案 0 :(得分:0)

很难为该问题提供确切的解决方案,而没有更多细节,但是,错误消息很明显:

在此主机上找不到

“覆盖”作为受支持的文件系统

请注意:

要配置Docker以使用覆盖存储驱动程序,您的Docker主机必须运行Linux内核的3.18版本(最好是 较新的版本),并加载了重叠式内核模块。

使用uname -r

检查内核版本

如果自从安装docker以来已安装了新内核,请尝试重新引导计算机。

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