Docker启动报Job for docker.service failed because the control process exited with error code. See “syst

Posted 李某乐

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker启动报Job for docker.service failed because the control process exited with error code. See “syst相关的知识,希望对你有一定的参考价值。

由于我的Docker是装在虚拟机上,由于电脑长时间未关机太卡,于是今天重启了一下机器,但是Docker未重启,于是就执行了一遍systemctl restart docker.service 然后就出现了Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

通过systemctl status docker.service查看docker状态

● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Fri 2020-10-09 17:49:21 CST; 37s ago
     Docs: https://docs.docker.com
  Process: 2559 ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock (code=exited, status=1/FAILURE)
 Main PID: 2559 (code=exited, status=1/FAILURE)

Oct 09 17:49:18 CentOS systemd[1]: Failed to start Docker Application Container Engine.
Oct 09 17:49:18 CentOS systemd[1]: Unit docker.service entered failed state.
Oct 09 17:49:18 CentOS systemd[1]: docker.service failed.
Oct 09 17:49:21 CentOS systemd[1]: docker.service holdoff time over, scheduling restart.
Oct 09 17:49:21 CentOS systemd[1]: start request repeated too quickly for docker.service
Oct 09 17:49:21 CentOS systemd[1]: Failed to start Docker Application Container Engine.
Oct 09 17:49:21 CentOS systemd[1]: Unit docker.service entered failed state.
Oct 09 17:49:21 CentOS systemd[1]: docker.service failed.

查看状态发现提示无法启动Docker的程序引擎,此时就想到了前几天配置了一下镜像加速器 ,通过 vim /etc/docker/daemon.json
查看json是否有错误,果不其然单词拼错了



        "registry-mirrors": [
                "http://ovfftd6p.mirror.aliyuncs.com",
                "http://registry.docker-cn.com",
                "http://docker.mirrors.ustc.edu.cn",
                "http://hub-mirror.c.163.com"
        ],
        "insecure-registries": [
                "registry.docker-cn.com",
                "docker.mirrors.ustc.edu.cn"
        ],
        "debug": true,
        "experimental": true


以上是关于Docker启动报Job for docker.service failed because the control process exited with error code. See “syst的主要内容,如果未能解决你的问题,请参考以下文章

docker启动时报错Job for docker.service failed because the control process exited with error code. See &qu

Job for docker.service failed because the control process exited with error

CentOS7安装docker 启动失败:Job for docker.service failed... 解决办法

docker 报错: Job for docker.service failed because the control process exited with error code. See &qu

docker for windows 踩坑

CentOS启动docker1.13失败(Job for docker.service failed because the control process exited with error cod