ERROR!!! An error was reported when logging in to the harbor

1. Error reporting phenomenon

An error is reported when the client logs in to the harbor
Insert picture description here

2. Solution ideas

An error
message shows that it cannot connect and is rejected . The reason for this problem is that the Docker Registry interaction uses HTTPS by default, but the HTTP service is used by default to build a private image, so this error occurs when interacting with the private image.

3. Solution

[root@docker1 system]# vim docker.service   #修改启动脚本

Insert picture description here

[root@docker1 system]# systemctl daemon-reload   #重新加载守护进行
[root@docker1 system]# systemctl restart docker    #重启docker
[root@docker1 system]# docker login -u admin -p Harbor12345 http://192.168.140.20

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_50344814/article/details/114867906