Error response from daemon: Get https://192.168.221.10/v2/: dial tcp 192.168.221.10:443: connect: co

Error response from daemon: Get https://192.168.221.10/v2/: dial tcp 192.168.221.10:443: connect: connection refused

情况说明:
在做harbor实验的时候,一管理员 的身份无法登陆docker

Error response from daemon: Get https://192.168.221.10/v2/: dial tcp 192.168.221.10:443: connect: co_第1张图片
故障原因:

Docker Registry 交互默认使用的是 HTTPS,但是搭建私有镜
像默认使用的是 HTTP 服务,所以与私有镜像交互时出现以上错误

解决方法:

[root@client ~]# vim /usr/lib/systemd/system/docker.service

Error response from daemon: Get https://192.168.221.10/v2/: dial tcp 192.168.221.10:443: connect: co_第2张图片
然后加载daemon,重启服务

[root@client ~]# systemctl daemon-reload 
[root@client ~]# systemctl restart docker

Error response from daemon: Get https://192.168.221.10/v2/: dial tcp 192.168.221.10:443: connect: co_第3张图片这就成功解决了,今天的踩坑经验就分享到这

你可能感兴趣的:(harbor,踩坑日志,docker)