現象
[root@localhost apache]# systemctl restart docker.service
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
解決
[root@localhost apache]# vim /etc/docker/daemon.json
{
"insecure-registries":["20.0.0.51:5000"],
"registry-mirrors": ["https://ix6qlzoo.mirror.aliyuncs.com"]
}
[root@localhost apache]# systemctl restart docker.service
パスを構成するときは、最後のコンマを忘れないでください。そうしないと、サービスが開始されず、注意しないとサービスを見つけることができません。