如何解决配置私有仓库时,Docker服务起不来问题?

如何解决配置私有仓库时,Docker服务起不来问题?

现象

[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 

在配置路径的时候,最后的逗号前面不要忘记哦,不然服务就起不来,不细致点根本发现不了。

猜你喜欢

转载自blog.csdn.net/m0_47219942/article/details/108698503