harbor 私有仓库访问过程中几种报错问题处理

harbor的搭建过程本篇不做描述,请查看网上相关文档,本篇主要是长时间没操作docker,对客户端访问harbor过程中遇到的问题,做一些总结。

1.问题一:push镜像denied ,报错如下:

[root@moban harbor]# docker push hub.runsise.com/test/test_centos:1.2
The push refers to repository [hub.runsise.com/test/test_centos]
88dc22e772e7: Preparing 
0683de282177: Preparing 
denied: requested access to the resource is denied

解决方法:访问的harbor私有项目,没有权限,通过docker login   仓库地址然后再次push 成功。

2.问题二:  认证问题,报错如下:

:[root@moban harbor]# docker push hub.runsise.com/test/test_centos:1.2
The push refers to repository [hub.runsise.com/test/test_centos]
Get https://hub.runsise.com/v2/: x509: certificate signed by unknown authority

解决方法:检查docker配置文件,是否追加insecure-registries": ["hub.runsise.com"]

 

3.问题三:hosts解析问题,仔细查看自己的仓库地址是否和hosts文件或者dns解析记录里面的信息一致。

Error response from daemon: Get https://hub.runzise.com/v2/: dial tcp: lookup hub.runzise.com on 202.102.224.68:53: no such host
[root@f5 ~]# 

4. 问题四:可以正常打开harbor网页,并确认用户名和密码输入,现象如下:

harbor 私有仓库访问过程中几种报错问题处理_第1张图片

解决方法: docker harbor安装过程就是通过docker compose来安装的,可以检查一下docker 容器的状态是不是都是up状态,如果不是,把不正常的容器start 启动即可。

harbor 私有仓库访问过程中几种报错问题处理_第2张图片

 

你可能感兴趣的:(docker)