docker搭建harbor私有仓库时报错怎么办?
Posted 龙少。
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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搭建harbor私有仓库时报错怎么办?的主要内容,如果未能解决你的问题,请参考以下文章
Docker------搭建本地私有仓库及Horbor私有仓库