报错如下
执行docker login登录私有仓库时报错
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get https://192.168.110.132/v2/: dial tcp 192.168.110.132:443: connect: connection refused
解决如下
vim /usr/lib/systemd/system/docker.service
[root@localhost ~]# systemctl daemon-reload
[root@localhost ~]# systemctl restart docker
另外,也有可能你的harbor服务自定义了端口,但是push的时候只写了Ip,就会报这个错!,端口加上即可push成功: