docker push 私有仓库harbor报502 Bad Gateway?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker push 私有仓库harbor报502 Bad Gateway?相关的知识,希望对你有一定的参考价值。
在centos7下装了docker与harbor,在就是push不了镜像到harbor上
参考技术A 应该是实现代理的容器没有启动起来,在harbor节点上重启一下所有容器。docker搭建harbor私有仓库时报错怎么办?
一.报错背景
docker搭建harbor私有仓库时报错;
[root@docker1 harbor]# sh /usr/local/harbor/install.sh
启动harbor时候报错
二.具体报错信息
ERROR: for nginx Cannot start service proxy: b'driver failed programming external connectivity on endpoint nginx (3f029f8dee3c8dc2b7f5220de2699dcb78ccf0342fbb9321898b56b7de75f60c): Er
Creating harbor-jobservice ... done
ERROR: for proxy Cannot start service proxy: b'driver failed programming external connectivity on endpoint nginx (3f029f8dee3c8dc2b7f5220de2699dcb78ccf0342fbb9321898b56b7de75f60c): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use'
ERROR: Encountered errors while bringing up the project.
三.故障解决
杀死nginx在运行的进程
[root@docker1 harbor]# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 75178 root 6u IPv4 682151 0t0 TCP *:http (LISTEN)
nginx 75378 nobody 6u IPv4 682151 0t0 TCP *:http (LISTEN)
[root@docker1 harbor]# kill -9 75178
[root@docker1 harbor]# kill -9 75378
[root@docker1 harbor]# netstat -antp | grep nginx
[root@docker1 harbor]# sh /usr/local/harbor/install.sh #重新启动
以上是关于docker push 私有仓库harbor报502 Bad Gateway?的主要内容,如果未能解决你的问题,请参考以下文章