当前位置:   article > 正文

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

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

由于我的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.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

查看状态发现提示无法启动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
}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/978487
推荐阅读
相关标签
  

闽ICP备14008679号