Ⅰ : 错误信息:
[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 端口重复占用 坑爹呀
4 comments
不错不错,我喜欢看 www.jiwenlaw.com
叼茂SEO.bfbikes.com
tfyurp07913EG-文章更新频率高,每次刷新都有新内容出现,非常丰富。http://mobile.jc620.cn//
神秘网友094852361@qq.comhttp://m.xxxjy.top/bshmnp05793QV-文章更新频率高,每次刷新都有新内容出现,非常丰富。http://www.pandalearn.cn//