Failed to log in to harbor

Obviously entered the correct harbor username and password, but still cannot log in to the harbor
Insert picture description here

Error details:

Error response from daemon: Get https://172.16.24.185/v1/users/: dial tcp 172.16.24.185:443: connect: connection re fused

Solution:
1. Edit daemon.json
ps: The harbor warehouse address of this article is: 172.16.24.185

vim /etc/docker/daemon.json
插入:
 "insecure-registries": ["172.16.24.185"]

Remember not to miss and add a comma after the original content. If you miss a comma, restart docker will report an error
Insert picture description here
2. Restart docker

systemctl daemon-reload
service  docker restart

3. Log in to harbor again
Insert picture description here

Guess you like

Origin blog.csdn.net/u010264186/article/details/107979390