解决Docker启动服务器链接失败-Job for docker.service failed because the control process exited error code
2017-10-26 17:07
991 查看
今天装Docker炸了一波,老是连不上服务器,提示:
使用 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包:
[/code]
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
[/code]
相关文章推荐
- 解决Job for docker.service failed because the control process exited with error code. See "systemctl s
- CentOS7启动SSH服务报:Job for ssh.service failed because the control process exited with error code.......
- Job for tomcat.service failed because the control process exited with error code 解决办法:
- Dockers Job for docker.service failed because the control process exited with error code
- Jenkins 安装启动提示“iJob for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.”
- Centos 7不能上网,Job for iptables.service failed because the control process exited with error code.
- Job for vsftpd.service failed because the control process exited with error code. See "systemctl sta
- Job for vsftpd.service failed because the control process exited with error code
- 关于nginx的Job for nginx.service failed because the control process exited with error code.错误
- Job for postfix.service failed because the control process exited with error code. See "systemctl st
- Centos 7不能上网,Job for iptables.service failed because the control process exited with error code.
- centos出现这个错误:Job for sshd.service failed because the control process exited with error code.
- Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details
- Job for nginx.service failed because the control process exited with error code. See "systemctl stat
- 重启网卡报Job for network.service failed because the control process exited with error code.。。 错误
- OpenStack常见错误:无法开启http服务 Job for httpd.service failed because the control process exited with error
- mysql.service failed because the control process exited with error code问题
- salt出错Job for salt-master.service failed because the control process exited with error code.
- gitlab搭建提示inet_interfacesJob for postfix.service failed because the control process exited with erro
- Job for php-fpm.service failed because the control process exited with error code. See "systemctl st