Skip to content

podman in production: unpriviliged user vs. --userns=auto #13728

Answered by rhatdan
tobwen asked this question in Q&A
Discussion options

You must be logged in to vote

It is actually more secure. If you run two containers as a rootless user, they run in the same user namespace so they can attack each other from a User Namespace point of view.

If you run two containers as root with podman run --userns auto, then they run in unigue user namespace and are isolated.

Rootless containers are great for containers run by users on a system, but if you are just running containers on a server, then --userns=auto is a more secure solution. (I plan on writing a blog on this).

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@tobwen
Comment options

@rhatdan
Comment options

@Luap99
Comment options

@rhatdan
Comment options

Answer selected by tobwen
Comment options

You must be logged in to vote
5 replies
@Luap99
Comment options

@tobwen
Comment options

@rhatdan
Comment options

@tobwen
Comment options

@rhatdan
Comment options

Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants