啟動docker時出現「Cannot start service :driver failed programming external connectivity on endpoint xxx, Bind for 0.0.0.0:80 failed: port is already allocated 」

 

ERROR: for dvwa_web_1  Cannot start service web: driver failed programming external connectivity on endpoint dvwa_web_1 (f8e55ccb4772d1009922a9891fd0d1411884da95c3ae998dca2599927a30ddb6): Bind for 0.0.0.0:80 failed: port is already allocated

原因:有其他的process占住了80 port,導致出現這個錯誤

輸入:lsof -nP +c 15 | grep LISTEN

com.docker.back 22990 mitsui   43u     IPv6 0xc9626a97227f5a27         0t0      TCP *:80 (LISTEN)

 

kill -9 process序號,再次啟動docker, 成功~

0

Leave a Reply

向上滑動