Skip to content

how to access the rootless pod (podman play kube) from host? #24233

Answered by Luap99
braindevices asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer you don't you always need published ports.

As rootless we simply no permissions to modify the host networking so there is absolutely no way to add any routing rules that could reach a rootless container, in particular as rootless everything has to happen inside rootless network namespaces which are then connected to the host via pasta or slirp4netns, see #22943 (comment)

Now you could join the namespace and then connect via ip there, e.g. podman unshare --rootless-netns curl <containerip>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by braindevices
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