Error——The client cannot log in to the Harbor server

[root@wt ~]# docker login  -u admin -pHarbor12345 http://192.168.153.40
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get https://192.168.153.40/v2/: dial tcp 192.168.153.40:443: connect: connection refused

Problem: The client cannot log in when connecting to the Harbor server.
Insert picture description here
Solution: Modify the configuration file to /usr/lib/systemd/system/docker.serviceadd this section so that the client can connect to the Harbor server.

vim /usr/lib/systemd/system/docker.service
systemctl daemon-reload 
systemctl restart docker

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_51613313/article/details/115324845