Networking is broken in WSL2? #15586
-
I have installed podman inside WSL2 latest Ubuntu using Inside of container I'm getting this:
this is my resolve:
ifconfig in container:
ifconfig in host (WSL):
Any ideas why it doesn't work? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Which Podman version are you running? If I recall correctly, up to a certain point (Podman 4.0? 4.1?) the IP address returned for host.containers.internal was wrong, and it looks likt it's the case here, too. Podman 4.2's podman-machine return the WSL2 distro's eth0 address:
In your case, this should be 192.168.152.10 instead of the 10.0.2.2 you got. |
Beta Was this translation helpful? Give feedback.
Which Podman version are you running? If I recall correctly, up to a certain point (Podman 4.0? 4.1?) the IP address returned for host.containers.internal was wrong, and it looks likt it's the case here, too. Podman 4.2's podman-machine return the WSL2 distro's eth0 address: