-
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 run device argument can't specify device on container #2380
Comments
If the goal of what I am trying to do turns out to be important (I don't think it is), what I would like to be able to do is share my soundcard with the container for the purpose of recording my screen and audio via the |
Hey @djzager I think the best start is the one you took, to create an issue. If you want a little more direct help, you certainly can hit us up on IRC too (freenode #podman), although best bet is to do so between 10 am and 2 pm Eastern (about one hour from now) as that's the sweet spot when most of the team is onboard there, we're very geographically spread out across the globe. |
@djzager I'm not the most familar with the Linux sound stack, but @rhatdan Didn't you patch |
My apologies, I may have introduced confusion by mentioning what I was trying to do (really just wanted to know the best way to get help with what I was trying to accomplish). The reason that I wrote the issue is that there is a discrepancy, at least as I see it, between what the |
First are you attempting this as non-root? |
Maybe in the future the newly introduced seccomp trap to user space feature (https://lwn.net/Articles/756233/) can help to create those devices for the non-root use case. |
Maybe, although I would be nervous about abuse. I think you could volume mount in the device and use it. |
I think this may be relevant to my end goal. I'll have to dig into that fact further. However, the issue with the manpage vs actual cli experience is still the main purpose of this issue 😎
|
Ahh, I think I see what this is. @djzager Does it work if you just do @rhatdan It looks like the manpage doesn't mention that directories can only be used without a destination ( |
@QiWang19 Could you look into this. |
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]>
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]>
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]>
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]>
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]> Closes: #1937 Approved by: rhatdan
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]> Closes: #1937 Approved by: rhatdan
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]>
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]>
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]>
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]>
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]>
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]> Closes: #1937 Approved by: rhatdan
Enables --device accepte directory path as source device. Add the devices under the source directory to the destination directory. complete card test criteria: https://jira.coreos.com/browse/RUN-497 related podman issue: containers/podman#2380 Signed-off-by: Qi Wang <[email protected]> Closes: containers#1937 Approved by: rhatdan
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
This may simply be a doc issue but I see in the podman-run man page it says:
But, when I attempt to add a device in this way I get an error
invalid argument
.Steps to reproduce the issue:
$ podman run --rm -it --entrypoint /bin/bash --device /dev/snd:/dev/snd:rwm localhost/dzager/ffmpeg
Describe the results you received:
Describe the results you expected:
To be able to specify
<device-on-host>[:<device-on-container>][:<permissions>]
Output of
podman version
:Output of
podman info
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: