docker
-
[Docker] WSL2 ports are not availableCS 2022. 5. 28. 00:53
WSL2 를 백엔드로 Docker를 설치하여 컨테이너를 만드니 이러한 오류가 나왔다. docker: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:4567 -> 0.0.0.0:0: listen tcp 0.0.0.0:4567: bind: An attempt was made to access a socket in a way forbidden by its access permissions. 확인해보니, 해당 포트(4567)이 사용을 하지 못하게 시스템으로 막아놓은 상태였다. 이때는 netsh interface ipv4 show excludedportrange protocol=tcp 를 입력하면 시스템에서 막아놓은 포..