Replies: 2 comments 3 replies
-
we overwrite containers.conf in the podman image so this is expected: https://github.com/containers/podman/blob/main/contrib/podmanimage/stable/containers.conf |
Beta Was this translation helpful? Give feedback.
-
Changing netns from
I think the information I'm looking for in the documentation is how rootless podman in rootless podman differs from rootless podman. And more importantly, why. I'll be more than happy to create the pull request for documentation update if I know the reasons behind those decisions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
According to the rootless podman documentation, slirp4netns is the default network mode for rootless. But rootless podman in rootless podman is using host network mode, which is confusing. And one of the drawback is that port publishing (i.e. podman run -p) of the inner container does not work.
Steps to reproduce the issue
Steps to reproduce the issue
podman run -d --security-opt label=disable --user podman --device /dev/fuse quay.io/podman/stable podman run -p 8888:22222 alpine nc -l 22222
podman exec -l podman inspect -l --format={{.HostConfig.NetworkMode}} {{.HostConfig.PortBindings}}
Describe the results you received
Podman inspect shows that the network mode is host and port binding set (published ports) is empty.
Describe the results you expected
Network mode being slirp4netns and the port binding set as specified in "-p hostPort:containerPort".
podman info output
Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
Beta Was this translation helpful? Give feedback.
All reactions