
VMWare을 사용한 이후부터 도커에서 포트 포워딩이 어느순간 안되기 시작했다.
ChatGPT를 참고해서 물어보니 22222번 포트를 VMWare NAT Service와 docker/wsl과 같이 사용함으로써 포트 포워딩/프록시가 복잡하게 얽혀있어서 그런것이었다.
서비스에서 VMWare NAT Service를 중단시키면 된다.
PS C:\Users\seo> Get-NetTCPConnection -LocalPort 22222 -ErrorAction SilentlyContinue | Format-List LocalAddress : ::1 LocalPort : 22222 RemoteAddress : :: RemotePort : 0 State : Listen AppliedSetting : OwningProcess : 7608 CreationTime : 2025-08-10 오후 8:28:12 OffloadState : InHost LocalAddress : :: LocalPort : 22222 RemoteAddress : :: RemotePort : 0 State : Listen AppliedSetting : OwningProcess : 9072 CreationTime : 2025-08-10 오후 8:28:11 OffloadState : InHost LocalAddress : 0.0.0.0 LocalPort : 22222 RemoteAddress : 0.0.0.0 RemotePort : 0 State : Listen AppliedSetting : OwningProcess : 4640 CreationTime : 2025-08-10 오후 7:53:16 OffloadState : InHost PS C:\Users\seo> netstat -ano | findstr :22222 TCP 0.0.0.0:22222 0.0.0.0:0 LISTENING 9072 TCP 0.0.0.0:22222 0.0.0.0:0 LISTENING 4640 TCP 127.0.0.1:52565 127.0.0.1:22222 TIME_WAIT 0 TCP [::]:22222 [::]:0 LISTENING 9072 TCP [::1]:22222 [::]:0 LISTENING 7608
PS C:\Users\seo> Get-Process -Id 4640,9072,7608 | Select-Object Id, ProcessName, Path Id ProcessName Path -- ----------- ---- 9072 com.docker.backend C:\Program Files\Docker\Docker\resources\com.docker.backend.exe 4640 vmnat 7608 wslrelay C:\Program Files\WSL\wslrelay.exe 현재 이렇게 나와