报错:ERROR: for nginx Cannot start service proxy;for proxy Cannot start service proxy;......

报错

[root@client opt]# sh /usr/local/harbor/install.sh

[Step 0]: checking installation environment ...

Note: docker version: 20.10.5

Note: docker-compose version: 1.21.1

[Step 1]: loading Harbor images ...
[Step 2]: preparing environment ...
[Step 3]: checking existing instance of Harbor ...
[Step 4]: starting Harbor ...

ERROR: for nginx  Cannot start service proxy: b'driver failed programming external connectivity on endpoint nginx (64c0bce8ddd1dd116ff04b53a14abdfb1253516889adafeb47483385260b1
Creating harbor-jobservice  ... donee'

ERROR: for proxy  Cannot start service proxy: b'driver failed programming external connectivity on endpoint nginx (64c0bce8ddd1dd116ff04b53a14abdfb1253516889adafeb47483385260b1899): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use'
ERROR: Encountered errors while bringing up the project.

原因:80端口被占用

[root@c1 opt]# netstat -natp | grep 80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      29451/nginx: master 
tcp        0     36 192.168.238.12:22       192.168.238.1:62806     ESTABLISHED 30605/sshd: root@pt 

解决:杀掉该进程

kill -9 29451
[root@c1 opt]# netstat -natp | grep 80
tcp        0     36 192.168.238.12:22       192.168.238.1:62806     ESTABLISHED 30605/sshd: root@pt 

你可能感兴趣的:(Error,error)