现象
[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
在配置路径的时候,最后的逗号前面不要忘记哦,不然服务就起不来,不细致点根本发现不了。