-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow mixing userns=auto and userns=keep-id #24837
Labels
Comments
Jookia
added
the
kind/feature
Categorizes issue or PR as related to a new feature.
label
Dec 13, 2024
if I understand correctly the problem you are facing, you'd like I think we could achieve it adding a |
That is a better way to put it, yes. Having a size option would be good, especially if I can set a default like 65536 so distrobox works without modification for backwards compatibility.
|
giuseppe
added a commit
to giuseppe/libpod
that referenced
this issue
Dec 20, 2024
Introduce a new option "size" to configure the maximum size of the user namespace configured by keep-id. Closes: containers#24837 Signed-off-by: Giuseppe Scrivano <[email protected]>
giuseppe
added a commit
to giuseppe/libpod
that referenced
this issue
Dec 20, 2024
Introduce a new option "size" to configure the maximum size of the user namespace configured by keep-id. Closes: containers#24837 Signed-off-by: Giuseppe Scrivano <[email protected]>
great, that is quite easy to add. Opened a PR: |
giuseppe
added a commit
to giuseppe/libpod
that referenced
this issue
Dec 20, 2024
Introduce a new option "size" to configure the maximum size of the user namespace configured by keep-id. Closes: containers#24837 Signed-off-by: Giuseppe Scrivano <[email protected]>
giuseppe
added a commit
to giuseppe/libpod
that referenced
this issue
Dec 20, 2024
Introduce a new option "size" to configure the maximum size of the user namespace configured by keep-id. Closes: containers#24837 Signed-off-by: Giuseppe Scrivano <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature request description
Currently you have to pick between using userns=auto for every container you have or being able to keep-id which is useful for development containers. I'm hitting this issue with distrobox for example.
Using the following flag gets a working result:
Suggest potential solution
podman never promises the UID range in nomap or keep-id. Maybe these could use auto by default, or by a configuration flag?
Have you considered any alternatives?
The application using podman could instead be changed to use =auto. In my case I modified distrobox. However there's no way for distrobox to know whether to use =auto or =keep-id, especially since using the wrong one may affect other containers running on the machine.
Additional context
Using =auto has a significant security boost, it would be nice to have this as a rootless user.
The text was updated successfully, but these errors were encountered: