k8s系列:解决start request repeated too quickly for docker.service

本文介绍了如何解决Docker服务启动时遇到的'start request repeated too quickly for docker.service'错误。该问题通常由docker.service失败并进入启动限制导致。通过查看systemd状态和journalctl日志,发现启动请求重复过快。解决方案是检查并修复/etc/docker/daemon.json配置文件中的非法字符或非英文格式的空格。

 

[root@xdoctorx-7008 ~]# systemctl status 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-04-17 21:17:58 CST; 1min 0s ago
     Docs: https://docs.docker.com
  Process: 7243 ExecStart=/usr/bin/dockerd -H unix:// (code=exited, status=1/FAILURE)
 Main PID: 7243 (code=exited, status=1/FAILURE)

Apr 17 21:17:56 master systemd[1]: docker.service: main process exited, cod...RE
Apr 17 21:17:56 master systemd[1]: Failed to start Docker Application Conta...e.
Apr 17 21:17:56 master systemd[1]: Unit docker.service entered fail

[root@localhost ~]# sudo systemctl status docker.service -l ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since 六 2025-06-14 17:33:17 CST; 1min 25s ago Docs: https://docs.docker.com Process: 98871 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 98871 (code=exited, status=1/FAILURE) 6月 14 17:33:15 localhost systemd[1]: Failed to start Docker Application Container Engine. 6月 14 17:33:15 localhost systemd[1]: Unit docker.service entered failed state. 6月 14 17:33:15 localhost systemd[1]: docker.service failed. 6月 14 17:33:17 localhost systemd[1]: docker.service holdoff time over, scheduling restart. 6月 14 17:33:17 localhost systemd[1]: Stopped Docker Application Container Engine. 6月 14 17:33:17 localhost systemd[1]: start request repeated too quickly for docker.service 6月 14 17:33:17 localhost systemd[1]: Failed to start Docker Application Container Engine. 6月 14 17:33:17 localhost systemd[1]: Unit docker.service entered failed state. 6月 14 17:33:17 localhost systemd[1]: docker.service failed. [root@localhost ~]# sudo journalctl -xe -u docker.service --since "5 minutes ago" -- -- Unit docker.service has failed. -- -- The result is failed. 6月 14 17:33:12 localhost systemd[1]: Unit docker.service entered failed state. 6月 14 17:33:12 localhost systemd[1]: docker.service failed. 6月 14 17:33:15 localhost systemd[1]: docker.service holdoff time over, scheduling restart. 6月 14 17:33:15 localhost systemd[1]: Stopped Docker Application Container Engine. -- Subject: Unit docker.service has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit docker.service has finished shutting down. 6月 14 17:33:15 localhost systemd[1]: Starting Docker Application Container Engine... -- Subject: Unit docker.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit docker.service has begun starting up. 6月 14 17:33:15 localhost dockerd[98871]: unable to configure the Docker daemon with file /etc/docker/daemon.json: 6月 14 17:33:15 localhost systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE 6月 14 17:33:15 localhost systemd[1]: Failed to start Docker Application Container Engine. -- Subject: Unit docker.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit docker.service has failed. -- -- The result is failed. 6月 14 17:33:15 localhost systemd[1]: Unit docker.service entered failed state. 6月 14 17:33:15 localhost systemd[1]: docker.service failed. 6月 14 17:33:17 localhost systemd[1]: docker.service holdoff time over, scheduling restart. 6月 14 17:33:17 localhost systemd[1]: Stopped Docker Application Container Engine. -- Subject: Unit docker.service has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit docker.service has finished shutting down. 6月 14 17:33:17 localhost systemd[1]: start request repeated too quickly for docker.service 6月 14 17:33:17 localhost systemd[1]: Failed to start Docker Application Container Engine. -- Subject: Unit docker.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit docker.service has failed. -- -- The result is failed. 6月 14 17:33:17 localhost systemd[1]: Unit docker.service entered failed state. 6月 14 17:33:17 localhost systemd[1]: docker.service failed.
最新发布
06-15
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

NIO4444

如果对您有帮助,欢迎打赏支持!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值