service docker start 报错 :Failed to start docker.se

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了service docker start 报错 :Failed to start docker.se相关的知识,希望对你有一定的参考价值。

service docker start 报错 :Failed to start docker.service: Unit not found.

解决办法:

     vi /usr/lib/systemd/system/docker.socket

添加内容如下:

[Unit]
Description=Docker Socket for the API
PartOf=docker.service

[Socket]
ListenStream=/var/run/docker.sock
SocketMode=0660
SocketUser=root
SocketGroup=docker

[Install]
WantedBy=sockets.target
Then run:

保存退出,执行如下动作:

    systemctl daemon-reload
    systemctl start docker

以上是关于service docker start 报错 :Failed to start docker.se的主要内容,如果未能解决你的问题,请参考以下文章

docker起不来报错:Failed to start Docker Application Container Engine.

docker服务启动:service docker start和systemctl start docker两种命令有什么区别?

service mc_start.sh does not support chkconfig

linux下service mongod start启动报错

linux下service mongod start启动报错

Failed to start docker.service: Unit not found.