-
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
Add support for pod inside of user namespace. #10589
Conversation
I applied this to the master branch and I am getting weird errors? $. /bin/podman pod create --userns=keep-id --name dan1 |
@rhatdan should be fixed now. I rebased before pushing it up and didn't realise the rebase broke it xD |
Still looks like it does not work, and tests are not happy.
|
Fixes: #7706 |
e6285e7
to
d8580f9
Compare
Tests are not happy? |
Code looks good and tests look great. |
@giuseppe @rhatdan any idea why the userns tests are unhappy only on ubuntu-2010 - https://storage.googleapis.com/cirrus-ci-6707778565701632-fcae48/artifacts/containers/podman/4754045987454976/html/int-podman-ubuntu-2010-rootless-host.log.html#t--podman-pod-create-with---userns-auto--1 |
@vrothberg @umohnani8 Could this be a runc versus crun issue? |
Probably but I had to read the code in detail. @giuseppe does the below error sound familiar to you?
|
how does the generated |
I see it generates:
The user namespace should also have the path set to the infraContainer as for the network, ipc and uts namespaces. |
566fc8b
to
2389e84
Compare
Add the --userns flag to podman pod create and keep track of the userns setting that pod was created with so that all containers created within the pod will inherit that userns setting. Specifically we need to be able to launch a pod with --userns=keep-id Signed-off-by: Daniel J Walsh <[email protected]> Signed-off-by: Urvashi Mohnani <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, rhatdan, umohnani8 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Thank you so much! As a Fedora user, how can I track when this will be available there? Without pulling down pre-release packages, I mean. |
podman 3.4 or later, we missed the cut, I believe for podman 3.3. |
Has this been removed? I'm keep getting:
podman version 4.4.4 |
this is a different error. If you are joining an existing user namespace (with |
@giuseppe Thanks for your reply and sorry for posting on the wrong PR. If I understand correctly, and this to work, is to use idsmapping instead, right? |
it depends, not sure what you'd like to get. What is the expectation you've from the command you've used? Were you trying to create a new user namespace? |
The container you are adding is going to join the pod's user namespace. We don't allow containers inside of the same pod to run with different user namespaces, because too much stuff will break in unexpected ways. |
If you are using podman-compose you should bring the issue up there. |
Add the --userns flag to podman pod create and keep
track of the userns setting that pod was created with
so that all containers created within the pod will inherit
that userns setting.
Specifically we need to be able to launch a pod with
--userns=keep-id
Signed-off-by: Daniel J Walsh [email protected]
Signed-off-by: Urvashi Mohnani [email protected]