service failed because start of the service was attempted too often(服务失败,因为尝试启动服务的次数太多。)

时间:2025-03-17 08:05:15

今天在进行docker搭建私有仓库时,重新启动docker时,发现启动不了docker服务,一头雾水,出现了如下错误,翻阅了资料后得知,原来如此简单

Job for failed because start of the service was
attempted too often. See “systemctl status ” and
“journalctl -xe” for details. To force a start use “systemctl
reset-failed ” followed by “systemctl start
” again.

启动Docker时发生错误

[root@bogon ~]# systemctl start docker
Job for docker.service failed because start of the service was attempted too often. See "systemctl status " and "journalctl -xe" for details.
To force a start use "systemctl reset-failed " followed by "systemctl start " again.

解决办法

[root@bogon ~]# cd /etc/docker
[root@bogon docker]# ll
总用量 8
-rw-r--r--. 1 root root 110 8月  19 09:16 
-rw-------. 1 root root 244 8月  19 02:30 
[root@bogon docker]# mv  

修改后缀为.conf