解决Docker启动服务器链接失败-Job for docker.service failed because the control process exited error code
今天装Docker炸了一波,老是连不上服务器,提示:Job for docker.service failed because the control就像这样,使用 docker version 命令以后,只显示了client ,提示错误使用 sudo service docker restart ,就是:Job for docker.service failed beca
Job for docker.service failed because the control
就像这样,使用 docker version 命令以后,只显示了client ,提示错误
使用 sudo service docker restart ,就是:Job for docker.service failed because the control process exited error code
用 systemctl status docker.service 查看具体的错误信息,这里有报错: process:12784 Exestart=/usr/bin/dockerd -H fd://(code=exited,status=1/FAILURE)
然后,通过 vim /lib/systemd/system/docker.service ,
将:ExecStart=/usr/bin/dockerd -H fd:// 改成ExecStart=/usr/bin/dockerd -H fd:// -s overlay2 ,
再执行:sudo systemctl daemon-reload & sudo systemctl restart docker,
成功启动docker。
启动成功以后,再看 docker version , client和 server的信息就都出来了
最后,运行 docker run hello-world ,that's ok!
卸载Docker包:
$ sudo apt-get purge docker-engine
$ sudo apt-get autoremove --purge docker-engine
$ rm -rf /var/lib/docker
更多推荐
所有评论(0)