登录Harbor仓库报错:
docker login -u admin -p Harbor12345 20.20.10.162
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get https://20.20.10.162/v2/: dial tcp 20.20.10.162:443: connect: connection refused
解决方法:
-
查找 docker.service 的位置 find / -name docker.service -type f
[root@worker chinaskills_cloud_paas]# find / -name docker.service -type f /usr/lib/systemd/system/docker.service
-
修改配置文件, 增加 --insecure-registry=20.20.10.163
-
重启服务
systemctl daemon-reload && systemctl restart docker