Job for docker.service failed because the control process exited with error code. See
2019-07-06 10:10
639 查看
在Liunx中使用Docker, 注: Liunx使用的是在虚拟机下的centOS7版本
在刚开始安装Docker时没有任何错误, 但是在后续的docker启动过程中, 出现以下问题:
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service”
1
刚遇到这个问题时, 在百度上找答案, 但是找到的答案都不能满足这个问题, 于是自己就慢慢摸索
首先查看了一下内核版本
因为使用命令: yum install docker下载时, 默认下载的是Docker的最新版本, 但是内核版本低的话可能不兼容新版本Docker, 所以有可能出现如上错误
解决方案:
步骤一:将以前下载好的Docker卸载干净, 使用如下命令:
yum remove docker-*
1
步骤二:更新该Liunx系统的内核版本,使用如下命令:
yum update
1
建议更新完之后, 重启一下系统
步骤三:继续下载安装docker(尽量使用高级管理员权限下载)使用如下命令
yum install dacker
1
步骤四:使用如下命令启动docker
systemctl start docker
1
问题解决!
如果这样安装完之后还报错, 按照这个步骤再来一遍即可
如果使用docker命令时出现如下错误:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
1
第一个原因可能是因为docker没有启动
第二个原因就是因为docker出现错误
归根结底都是docker启动问题, 解决方案还是以上步骤
作者:菜鸡编程
来源:CSDN
原文:https://blog.csdn.net/w1316022737/article/details/83692701
版权声明:本文为博主原创文章,转载请附上博文链接!
相关文章推荐
- 解决Job for docker.service failed because the control process exited with error code. See "systemctl s
- 启动Docker 出现Job for docker.service failed because the control process exited with error code. See "错误
- Job for docker.service failed because the control process exited with error code. See "systemctl sta...
- 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 mysqld.service failed because the control process exited with error code. See "systemctl sta
- 【Zabbix】Job for httpd.service failed because the control process exited with error code. See "sy解决方案
- Job for postfix.service failed because the control process exited with error code. See "systemctl st
- docker启动报错: Job for docker.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
- vps中docker启动出现错误Job for docker.service failed because the control process exited with error code. Se
- Dockers Job for docker.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 nginx.service failed because the control process exited with error code. See “systemctl stat
- yum安装docker报错:Job for docker.service failed because the control process exited with error code
- Job for nginx.service failed because the control process exited with error code. See "systemctl stat
- 解决Docker启动服务器链接失败-Job for docker.service failed because the control process exited error code
- CentOS 7重启防火墙服务,出现Job for iptables.service failed because the control process exited with error code
- Job for mariadb.service failed because the control process exited with error code
- Job for named.service failed because the control process exited with error code.
- centos7下docker启动失败--ob for docker.service failed because the control process exited with error code.