Rootless podman with own network namespace or networking #17235
Unanswered
electrofloat
asked this question in
Q&A
Replies: 1 comment 12 replies
-
If you have an netns you can use |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm trying to find a way where I can start a rootless podman container and attach it to an already existing netns and/or interface.
I can create the required interfaces and set them up the way I want as root, then I'd like to use those from rootless podman. (maybe I configure 1 bridge and some containers would be part of it so that they can communicate with each-other, maybe I want a different interface for every container with different ip addresses, route them/firewall them the way I want)
The approach written here is almost ok: https://lists.podman.io/archives/list/[email protected]/thread/W6MCYO6RY5YFRTSUDAOEZA7SC2EFXRZE/
but it depends on starting the container first (and also depending on it not stopping immediately because network is not available at that point), and also needs to be done every time the container stopped/started. Nor really convenient.
Also here: #13706 (comment) - rhatdan says: "Allowing users to setup their own network namespace and allow that to joined to a Podman container is the best we can do."
Can this already be achieved with current config options for rootless podman, or is this something that needs development?
Beta Was this translation helpful? Give feedback.
All reactions