By vi/usr/lib/systemd/system/docker. The modified the docker service configuration, and then restart the docker performs the following two commands:


systemctl daemon-reload

systemctl restart docker

Copy the code

Running results:

We are prompted to use the journalctl -xe command for a more detailed error log:

(1) Cause analysis

As written in the log clearly, the configured Docker private server is not available.

(2) solution

Modify and save the registry-mirrors in /etc/docker/daemon.json to the available Docker private server address 1.

Then run systemctl start docker to start the docker.

Run systemctl status docker. Service to check the current docker status:

You can see that the Docker is back to normal.


[1] How to configure the Docker image acceleration service.