標籤

ASP.NET MVC (29) Visual C# (15) JQuery (10) Plugins (8) JQuery Plugins (6) JavaScript (6) MySQL (5) CSS (4) LinQ (4) Mac OS (4) CentOS (3) Design Pattern (3) Entity Framework (3) IIS (3) Python (3) Windows (3) php (3) Docker (2) LAMP (2) SQL Server (2) WCF (2) .NET (1) .NET Core (1) AWS (1) Browser (1) GIS (1) IE (1) Internet Security (1) Linux (1) Platform (1) React (1) SEO (1) Testing (1) VMware (1) Windows 7 (1) cookie (1) curl (1) laravel (1) phpBB (1) session (1) 中古屋 (1) 透天 (1) 閒言閒語 (1) 面試 (1) 鳥松 (1)

2018年5月1日 星期二

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

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

解決紀錄:

出現錯誤時先把docker關閉
✗ docker-compose down


再次啟動docker
✗ docker-compose up


發現還是一樣的錯誤訊息
ERROR: for dockerdevenv_php_1  Cannot start service xxx: driver failed programming external connectivity on endpoint xxx (3fb2445adf3cf07061d859f478293b90af21f793b1b01ba5f23203f145d7342f): Bind for 0.0.0.0:80 failed: port is already allocated


想找出是什麼process佔住80 port, 所以關閉docker後輸入下列指令「lsof -nP +c 15 | grep LISTEN」







恩, 用kill -9結束process



再次啟動docker, 成功~