Skip to content
Discussion options

You must be logged in to vote

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:

PS C:\> podman machine start
PS C:\> podman machine ssh ip a sh eth0
6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
...
    inet 172.18.237.164/20 brd 172.18.239.255 scope global eth0
...
PS C:\> podman machine ssh hostname -I
172.18.237.164
PS C:\> podman run --rm -it docker.io/library/alpine:latest ping host.containers.internal
PING host.containers.internal (172.18.237.…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Maxim-Mazurok
Comment options

@Maxim-Mazurok
Comment options

Answer selected by Maxim-Mazurok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants