Skip to content
Cris Simpson edited this page Nov 18, 2020 · 4 revisions

Windows

Port 3000 not available

ERROR: for paws-compose-client Cannot start service client: Ports are not available: listen tcp 0.0.0.0:3000: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

This error can be caused by Hyper-V reserving TCP port 3000 (Node/Express default port), which prevents Docker from exposing it outside the container.

You can verify this by running netsh interface ipv4 show excludedportrange protocol=tcp You'll see 3000 within a reserved range.
There are three solutions:

  • Disable Hyper-V and run Docker via WSL2 (best solution)
    See Disable Hyper-V and Run Docker on WSL2

  • Disable Hyper-V, reserve the port for Docker, re-enable Hyper-V
    See this Docker issue

  • Expose the client on a non-reserved port
    Edit the client section of docker-compose.yml and change 3000:3000 to 8000:3000 (or other available port)