-
Notifications
You must be signed in to change notification settings - Fork 379
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
GPU-related device nodes appear in container invocation even when --gpu is not specified #455
Comments
Could you please give me an example? A command and the output of If you have image Example:
[...]
[...]
The command shown in the
That is entirely right. And it is part of the concept of x11docker to only pass what is needed.
You'll find it to be GPU accelerated although |
Hi. The output you pasted above (with the I overlooked or forgot the fact that there may have been two containers running (the X container, and the command container). Although I also wasn't sure why That's a good point about potentially unnecessary access being exposed through The possible extension here to this ticket is that maybe Although, I ran a very quick test to mount some empty directory into Perhaps some things can be reported upstream, like a possibility of tightening what's injected into a container for |
That is right, there is mostly no hard need to include them in the X container. At least In case one uses I'll write some more about the irregular device access through |
I meant to reply to your overall last response; I didn't see a way in Github to abandon a comment draft. Anyhow, it's definitely reassuring that the command container doesn't have direct access to those devices. After all, I would imagine I look forward to your thoughts or writeup regarding |
When I don't specifically add
--gpu
(or even when I add--gpu=no
) I find various GPU/DRM devices appear in the container command line.I'm wondering if this is intentional. In some cases I may prefer not to pass in devices if I won't be making use of them.
Although I am not completely clear how to validate what's actually passed in. I'm not sure if there are other transforms on the container command line prior to running it, but if I don't specifically add
--gpu
I might prefer that those devices not get passed in altogether. I'm wondering if there is meant to be some conditional login on their inclusion and the conditions weren't added in certain sections ofx11docker
.In my case I'm running podman user mode, although I'm guessing this sort of thing would be easy to reproduce as it seems to be logic-related.
The text was updated successfully, but these errors were encountered: