首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CentOS 7-无法连接到unix://var/run/docker.sock上的Docker守护进程。码头守护进程正在运行吗?

CentOS 7-无法连接到unix://var/run/docker.sock上的Docker守护进程。码头守护进程正在运行吗?
EN

Stack Overflow用户
提问于 2020-04-10 15:44:58
回答 1查看 607关注 0票数 1

我试图在CentOS 7中安装停靠程序,但得到了守护进程错误。我尝试了所有的方法,可以在互联网上安装和调试,但没有真正的工作!我甚至试着安装那些也不起作用的较旧版本的docker。

SELinux被禁用。

代码语言:javascript
复制
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

码头版

代码语言:javascript
复制
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 status docker.service -l

代码语言:javascript
复制
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.
EN

回答 1

Stack Overflow用户

发布于 2020-04-13 18:56:00

如果没有更多的细节,很难为这个问题提供一个确切的解决方案,但是,错误信息是明确的:

在此主机上未发现

'overlay‘作为受支持的文件系统

请注意:

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

使用uname -r检查内核版本

如果您安装了新内核,请重新启动您的计算机。

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61143767

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档