Answer the question
In order to leave comments, you need to log in
How to access WSL2 from a container?
The essence of the problem is reflected in the image, I can’t tell you better:
I tried the IP of the Windows host, WSL2, host.docker.internal and some magic IP 172.17.0.1
ifconfig inside wsl2:
ifconfig inside the container:
Any advice would be welcome.
Answer the question
In order to leave comments, you need to log in
For future seekers, the answer is here: https://docs.microsoft.com/en-us/windows/wsl/compa...
netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=WSL_IP
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question