问题
Job for docker.service failed because start of the service was attempted too often.
[root@vincent 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@vincent run]#
[root@vincent 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 2020-07-11 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)
Jul 11 14:10:32 vincent systemd[1]: docker.service failed.
Jul 11 14:10:34 vincent systemd[1]: docker.service holdoff time over, scheduling restart.
Jul 11 14:10:34 vincent systemd[1]: Stopped Docker Application Container Engine.
Jul 11 14:10:34 vincent systemd[1]: start request repeated too quickly for docker.service
Jul 11 14:10:34 vincent systemd[1]: Failed to start Docker Application Container Engine.
Jul 11 14:10:34 vincent systemd[1]: Unit docker.service entered failed state.
Jul 11 14:10:34 vincent systemd[1]: docker.service failed.
Jul 11 14:11:12 vincent systemd[1]: start request repeated too quickly for docker.service
Jul 11 14:11:12 vincent systemd[1]: Failed to start Docker Application Container Engine.
Jul 11 14:11:12 vincent systemd[1]: docker.service failed.
[root@vincent run]#
解决办法
把/etc/docker/daemon.json
文件修改后缀为conf
的文件daemon.conf
,然后重启docker即可