harbor deployment of common errors

Some harbor pit summary deployment process encountered
 
1: When using docker push mirroring Tip: denied: Access to requested at The Resource IS denied , user login and password are correct is still being given, to find information online Baidu said /.docker/config.json file causes, in fact, is your push command format problems caused

 

Solution:

To play tag you push the project in accordance with the following format to push
For example: docker tag harbor.test.com/test-tomcat/【image】:【tag] [image]
docker tag tomcat:9.0 harbor.test.com/test-tomcat/tomcat:9.0
docker push harbor.test.com/test-tomcat/tomcat:9.0
2: When prompted for the first time login: X509: Signed by Unknown Certificate Authority
Solution:
Because here is to open the https harbor, the need in your / etc / docker directory, create a certs.d / [domain name] directory harbor, ca certificate file copy this directory named ca.crt, then can restart
3:提示: Error response from daemon: Get https://xxxx.xxxx.xxx/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Solution:
提示是无法去连接通信域名,经过排查,主机去寻找的域名解析的Ip地址不是本机,所以判断域名解析问题导致连接失败,修改Hosts文件,将harbor域名添加到解析中,再login就会正常了
以上这些问题只是本人所部署过程中遇到的问题,只做参考意义!!

Guess you like

Origin www.cnblogs.com/douyi/p/12057650.html