-
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 ignores --network=host #9077
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? |
Yes i can do it. However it still does not work after fixing the conflict in configuration, what do you think about this part ? Maybe I should have created 2 issues for the 2 different problems, in this case the issue is that even when fixing the capabilities, X11 does not open with |
@pciavald You have to create pod with --network=host. Generated pod-yaml ignores your --network=host option, and because of that your image is started with default network. That makes the difference between |
It looks like
Tested with podman 2.2.1 and 3.0.0-rc1.
podman 3.0.0-rc1 works:
|
This works on my fedora:
Open x11.yaml and add
|
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
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: