Dockers Job for docker.service failed because the control process exited with error code
2017-08-09 02:01
991 查看
零、问题描述
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.系统环境是 CentOS7.x,貌似是重启
Docker Engine的时候会出现这种问题。
我就是参照Docker 镜像加速器设置完 Docker 镜像地址之后重启
Docker Engine遇到这个问提的。
我重启的命令是:
# sudo systemctl daemon-reload # sudo service docker restart
一、解决方案
Google 了一圈,发现各种问答也很杂。但是最终我还是解决了!1.1 方案一
也是提及最多的,删除/var/lib/docker目录:
# rm -rf /var/lib/docker
# sudo systemctl daemon-reload # sudo service docker restart
然而我删完之后,还是不行。
1.2 方案二
安装docker-io-selinux:
# sudo yum install docker-io-selinux
# sudo systemctl daemon-reload # sudo service docker restart
这个方法来自 [FIXED] Docker stopped working after ‘yum update’ and reboot (Centos 7)。
我安装完之后就可以了!然而却还不知道是什么原因!
1.2 其他提及的
找的过程中,还遇到其他说安装各种东西的。CentOS7 启动docker.service失败 提及安装
device-mapper-event-libs:
# sudo yum install device-mapper-event-libs
# sudo systemctl daemon-reload # sudo service docker restart
Docker 1.5.0 package must require proper device-mapper version 提及安装
device-mapper-devel:
# sudo yum install device-mapper-devel
# sudo systemctl daemon-reload # sudo service docker restart
当然,我也不知道是安装来干嘛的。
相关文章推荐
- 解决Job for docker.service failed because the control process exited with error code. See "systemctl s
- Job for postfix.service failed because the control process exited with error code. See "systemctl st
- Job for nginx.service failed because the control process exited with error code. See "systemctl stat
- Job for tomcat.service failed because the control process exited with error code 解决办法:
- Job for vsftpd.service failed because the control process exited with error code
- Centos 7不能上网,Job for iptables.service failed because the control process exited with error code.
- 解决Docker启动服务器链接失败-Job for docker.service failed because the control process exited error code
- centos出现这个错误:Job for sshd.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.”
- 重启网卡报Job for network.service failed because the control process exited with error code.。。 错误
- CentOS7启动SSH服务报:Job for ssh.service failed because the control process exited with error code.......
- 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 httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details
- 关于nginx的Job for nginx.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问题
- Job for php-fpm.service failed because the control process exited with error code. See "systemctl st
- gitlab搭建提示inet_interfacesJob for postfix.service failed because the control process exited with erro
- salt出错Job for salt-master.service failed because the control process exited with error code.