Skip to content
Discussion options

You must be logged in to vote

PrivateMounts=no is 100% a requirement, your reproducer doesn't seem to use it.
When you run podman in different mount namespaces you basically break all sort of mount tracking.

Different network namespaces can work but it means you must be very very careful from where you run podman commands. You cannot run podman stop/rm from a different netns and then expect the cleanup to work. Podman has no idea what the "host" namespace originally was when it created the container so it must be the same when stopping so it finds the right interfaces.

In general I would strongly recommend against doing such things. If you want the container to join the vpn namespace you can use something like --netwo…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by chetan-reddy
Comment options

You must be logged in to vote
1 reply
@Luap99
Comment options

Comment options

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