Network communication between Windows + WSL2 + Docker
I have a web app hosted in a Docker container and exposes port 5050 that is mapped to port 80 of the container. The web app listens on 0.0.0.0:5050. The Docker engine runs on WSL2. Now when I open a browser on Windows and go to http://localhost:5050, everything works and I can see the web app. But I don't understand how the request can reach the Docker container when I navigate to localhost on Windows. Any ideas ?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.