2025年6月18日 星期三

docker中的container無法啟動時?

 最近使用n8n出現無法啟動,出現Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5678 -> 127.0.0.1:0: listen tcp 0.0.0.0:5678: bind: An attempt was made to access a socket in a way forbidden by its access permissions,

1.使用 netstat -ano | findstr :5678 , tasklist /fi "pid eq [PID]" 沒有被佔據

2.臨時停用 Windows NAT 服務

net stop winnat

docker start [container_name] -- docker start n8n

net start winnat

居然可以,所以當你使用第1中方法,卻沒有被佔據,就用第2種方法


沒有留言:

張貼留言