--net host doesn’t help. sudo podman inspect and page down to the Network settings:
"NetworkSettings": {
"Bridge": "",
"SandboxID": "",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": [],
"SandboxKey": "",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": ""
},
So … force remove the container and try without --net host:
"NetworkSettings": {
"Bridge": "",
"SandboxID": "",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": [
{
"hostPort": 8787,
"containerPort": 8787,
"protocol": "tcp",
"hostIP": ""
}
],
"SandboxKey": "/var/run/netns/cni-f10f03a6-7348-b652-193d-b3c2ea5f6f3f",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "10.88.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "10.88.0.10",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "f6:b2:a7:14:b3:d9"
},
That’s a little better, but why is hostIP an empty string? OK - try browing to the container’s IP address: $ xdg-open http://10.88.0.10:8787. Nope - still can’t see it in the browser.
I’m guessing there are some explicit setup steps to get the networking configured that I don’t have.
$ nmcli dev
DEVICE TYPE STATE CONNECTION
enp2s0 ethernet connected enp2s0
cni0 bridge connected cni0
docker0 bridge connected docker0
virbr0 bridge connected virbr0
lo loopback unmanaged --
virbr0-nic tun unmanaged --
wlp0s18f2u5 wifi unmanaged --