Job for docker.service failed because start of the service was attempted too often

[root@test run]# systemctl start docker
Job for docker.service failed because start of the service was attempted too often. See "systemctl status docker.service" and "journalctl -xe" for details.
To force a start use "systemctl reset-failed docker.service" followed by "systemctl start docker.service" again.
[root@test run]# 
[root@test run]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Sat 2021-09-16 14:10:34 CST; 50s ago
     Docs: https://docs.docker.com
  Process: 1101 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 Main PID: 1101 (code=exited, status=1/FAILURE)

Sep 16 14:10:32 test systemd[1]: docker.service failed.
Sep 16 14:10:34 test systemd[1]: docker.service holdoff time over, scheduling restart.
Sep 16 14:10:34 test systemd[1]: Stopped Docker Application Container Engine.
Sep 16 14:10:34 test systemd[1]: start request repeated too quickly for docker.service
Sep 16 14:10:34 test systemd[1]: Failed to start Docker Application Container Engine.
Sep 16 14:10:34 test systemd[1]: Unit docker.service entered failed state.
Sep 16 14:10:34 test systemd[1]: docker.service failed.
Sep 16 14:11:12 test systemd[1]: start request repeated too quickly for docker.service
Sep 16 14:11:12 test systemd[1]: Failed to start Docker Application Container Engine.
Sep 16 14:11:12 test systemd[1]: docker.service failed.
[root@test run]#

在docker里面启用镜像加速或者搭建Registry私有仓库修改客户端上docker配置时,我们会去修改daemon.json文件,但是有的时候会出现镜像不能重启,问题可能就出现在你刚刚添加的字段格式或者字段上面。这时候重新进去编辑一下确保你输入的准确,就可以实现docker重启。不要想着去更改文件的后缀,这样的话加速可能就会不支持。格式:

{
          "registry-mirrors": ["镜像加速地址1", "镜像加速地址2", "镜像加速地址3"]
          "insecure-registries": ["仓库IP:端口号 "]
}
[root@test run]#vim /etc/docker/daemon.json
[root@test run]#systemctl start docker
[root@test run]#

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值