[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.
Solution: Modify the configuration file to /usr/lib/systemd/system/docker.service
add 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