问题现象: 最新没有做过什么变更啊,上传镜像的时候出现 [root@hdss7-200 ~]# docker push harbor.od.com/public/jenkins:v2.190.3 The push refers to repository [harbor.od.com/public/jenkins] e0485b038afa: Retrying in 1 second 2950fdd45d03: Retrying in 1 second cfc53f61da25: Retrying in 1 second 29c489ae7aae: Retrying in 1 second 473b7de94ea9: Retrying in 1 second 6ce697717948: Waiting 0fb3a3c5199f: Waiting 23257f20fce5: Waiting b48320151ebb: Waiting 911119b5424d: Waiting 5051dc7ca502: Waiting a8902d6047fe: Waiting 99557920a7c5: Waiting 7e3c900343d0: Waiting b8f8aeff56a8: Waiting 687890749166: Waiting 2f77733e9824: Waiting 97041f29baff: Waiting received unexpected HTTP status: 502 Bad Gateway 解决办法: 首先docker login harbor.od.com 发现登录不上去了 然后查看容器是否有挂的 —发现大批容器被驱逐了 [root@hdss7-200 ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES da727c91a66b goharbor/nginx-photon:v1.8.3 “nginx -g 'daemon of…” 5 weeks ago Exited (255) 11 minutes ago 0.0.0.0:180->80/tcp, :::180->80/tcp nginx cfcf2c32e7ca goharbor/harbor-portal:v1.8.3 “nginx -g 'daemon of…” 5 weeks ago Exited (255) 11 minutes ago 80/tcp harbor-portal 9e245dc986b2 goharbor/harbor-jobservice:v1.8.3 “/harbor/start.sh” 5 weeks ago Exited (255) 11 minutes ago harbor-jobservice a0d2ce70be98 goharbor/harbor-core:v1.8.3 “/harbor/start.sh” 5 weeks ago Exited (255) 11 minutes ago harbor-core bd34fea590aa goharbor/redis-photon:v1.8.3 “docker-entrypoint.s…” 5 weeks ago Exited (255) 11 minutes ago 6379/tcp redis dcd1c9cbe8c9 goharbor/harbor-db:v1.8.3 “/entrypoint.sh post…” 5 weeks ago Exited (255) 11 minutes ago 5432/tcp harbor-db 550f7a18c456 goharbor/harbor-registryctl:v1.8.3 “/harbor/start.sh” 5 weeks ago Exited (255) 11 minutes ago registryctl 87dc6c7d583d goharbor/registry-photon:v2.7.1-patch-2819-v1.8.3 “/entrypoint.sh /etc…” 5 weeks ago Exited (255) 11 minutes ago 5000/tcp registry f362a3e603e0 goharbor/harbor-log:v1.8.3 “/bin/sh -c /usr/loc…” 5 weeks ago Up 10 minutes (healthy) 127.0.0.1:1514->10514/tcp harbor-log 将所有容器重启后恢复正常 [root@hdss7-200 ~]# docker restart docker ps -a |awk '{print $1}'
|