访问Harbor报502 Bad Gateway

蹲街弑〆低调 提交于 2019-12-05 23:17:15

Harbor启动都是多个容器的,首先查看一下是否有相关容器未启动

 docker ps | grep harbor
cae340214e57        goharbor/nginx-photon:v1.9.3                             "nginx -g 'daemon of…"   4 hours ago         Up 15 minutes (unhealthy)   0.0.0.0:10000->8080/tcp     nginx
a111d0141ed8        goharbor/harbor-jobservice:v1.9.3                        "/harbor/harbor_jobs…"   4 hours ago         Up 12 minutes (healthy)                                 harbor-jobservice
66010e33921c        goharbor/harbor-core:v1.9.3                              "/harbor/harbor_core"    4 hours ago         Up 11 minutes (healthy)                                 harbor-core
6c522b6bb1a6        goharbor/clair-photon:v2.1.0-v1.9.3                      "/docker-entrypoint.…"   4 hours ago         Up 11 minutes (healthy)     6060-6061/tcp               clair
5b9d873b61e0        goharbor/harbor-db:v1.9.3                                "/docker-entrypoint.…"   4 hours ago         Up 11 minutes (healthy)     5432/tcp                    harbor-db
aac974079034        goharbor/chartmuseum-photon:v0.9.0-v1.9.3                "/docker-entrypoint.…"   4 hours ago         Up 11 minutes (healthy)     9999/tcp                    chartmuseum
faf2df54331d        goharbor/registry-photon:v2.7.1-patch-2819-2553-v1.9.3   "/entrypoint.sh /etc…"   4 hours ago         Up 15 minutes (healthy)     5000/tcp                    registry
8c9c732a96ef        goharbor/harbor-portal:v1.9.3                            "nginx -g 'daemon of…"   4 hours ago         Up 11 minutes (healthy)     8080/tcp                    harbor-portal
81cb4a102be0        goharbor/harbor-registryctl:v1.9.3                       "/harbor/start.sh"       4 hours ago         Up 11 minutes (healthy)                                 registryctl
e4d725b61fcc        goharbor/redis-photon:v1.9.3                             "redis-server /etc/r…"   4 hours ago         Up 11 minutes (healthy)     6379/tcp                    redis
5a951f8034ec        goharbor/harbor-log:v1.9.3                               "/bin/sh -c /usr/loc…"   4 hours ago         Up 15 minutes (healthy)     127.0.0.1:1514->10514/tcp   harbor-log

可以看到有一个容器状态是unhealthy,重启这个容器

docker restart cae340214e57

然后再次查看,等容器状态是healthy后即可访问

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!