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
}

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值