Ⅰ : 错误信息:

[deployer@localhost harbor]$ docker push reg.grawav.cn/library/centos:centos7.4.1708 
The push refers to repository [reg.grawav.cn/library/centos]
606d67d8e1b8: Pushing [==================================================>]  196.6MB/196.6MB
unknown: <html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx/1.9.9</center>
</body>
</html>

Ⅱ : 兜兜转转半天找了原因

[deployer@localhost ~]$ docker ps
CONTAINER ID   IMAGE                                COMMAND                   CREATED        STATUS                 PORTS                                       NAMES
26adf5ca40a9   goharbor/nginx-photon:v2.0.1         "nginx -g 'daemon of…"   44 hours ago   Up 2 hours (healthy)   0.0.0.0:8080->8080/tcp, :::8080->8080/tcp   nginx
6bb5c683a573   goharbor/harbor-jobservice:v2.0.1    "/harbor/entrypoint.…"   44 hours ago   Up 2 hours (healthy)                                               harbor-jobservice
6b2370b98d2a   goharbor/harbor-core:v2.0.1          "/harbor/entrypoint.…"   44 hours ago   Up 2 hours (healthy)                                               harbor-core
c369984f716d   goharbor/registry-photon:v2.0.1      "/home/harbor/entryp…"   44 hours ago   Up 2 hours (healthy)   5000/tcp                                    registry
d493f2aee704   goharbor/harbor-portal:v2.0.1        "nginx -g 'daemon of…"   44 hours ago   Up 2 hours (healthy)   8080/tcp                                    harbor-portal
54d5bdf9215d   goharbor/harbor-db:v2.0.1            "/docker-entrypoint.…"   44 hours ago   Up 2 hours (healthy)   5432/tcp                                    harbor-db
bb1471f4e68e   goharbor/harbor-registryctl:v2.0.1   "/home/harbor/start.…"   44 hours ago   Up 2 hours (healthy)                                               registryctl
4bee5afd50aa   goharbor/redis-photon:v2.0.1         "redis-server /etc/r…"   44 hours ago   Up 2 hours (healthy)   6379/tcp                                    redis
1ce997ccebd2   goharbor/harbor-log:v2.0.1           "/bin/sh -c /usr/loc…"   44 hours ago   Up 2 hours (healthy)   127.0.0.1:1514->10514/tcp                   harbor-log

原因在于8080 端口重复占用 坑爹呀

End
文章作者:
文章地址:http://honglvliyu.cn/index.php/archives/151/
文章标题:docker推送镜像至Harbor失败
文章版权:本文由Beyond the game独立整理撰写,转载请保留文章出处。
Last modification:February 22nd, 2024 at 05:34 pm
咋滴 看了不给钱呀
广而告知