-
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
podman generate kube adds mutually exclusive keys CapAdd and privileged #9131
Comments
Looks like it should be pretty easy to fix, Basically don't add cap-add if --privileged is set. |
Interested in opening a PR? |
I will in the next 10 days if that's alright. |
A friendly reminder that this issue had no activity for 30 days. |
@pciavald Are you still interested in working on this or was this already done? |
Ok this looks like it is fixed, but while testing I found another issue. |
@rhatdan i can still fix this if needed, sorry i got caught with a never-ending deadline. |
I believe it is fixed? |
Hello there, I believe this has not been fixed yet.
Returns:
My environment:
Podman package has been installed from AppStream CentOS 8 repository. |
This is deliberate - |
@mheon The reason I have for wanting to specify both flags is to mimic Docker behavior. For the transition period we are going to have docker and podman running, and would be great to not require to make changes to client that currently consumes docker containers. |
(Apologies if this is off topic, this is the only discussion I could find of this issue, and I'm not sure if it's a bug) In rootless mode, I need I don't know why, but having just Is this a bug? I know rootless mode has some quirks and limitations, but if If you're wondering about my use case - I'm compiling Android in an Ubuntu container, and I would like to use rootless mode if possible. The Android build system complains if it can't use (Podman 4.0.1) |
Please open a bug report about that, because that sounds like a bug. |
Understood. On the off chance a future reader comes across this issue with the same problem, here is the new issue: |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Copied content from #9077 which was describing 2 issues, feel free to edit. Refer to issue title to know which is which.
When generating the kubernetes manifest for an X11 app that works, the resulting manifest cannot be played for 2 reasons:
podman generate
adds both CapAdd and privileged keys to the manifest resulting inpodman play
is unable to open X display on the resulting file while the initial pod was able to.Steps to reproduce the issue:
capabilities:
orprivileged: true
and run againDescribe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: