[Solved] CentOS build a docker error: job for docker.service failed….

Build docker in centos.
At first everything went well, but after configuring the image, I restarted docker and got an error
Restarting docker reports the following error message:
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
The start docker error message reads:
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.

Reason for the problem: daemon file suffix format causes reboot/boot failure
The solution is
1、Enter the docker directory: cd /etc/docker
2、Modify the suffix of daemon file: mv daemon.json daemon.conf
3, restart/start docker: systemctl start docker


image852×367 12.3 KB


Read More: