-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
nvidia-docker2 support #781
Comments
Hey @niXta1 👋, Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our Open Collective and consider backing us. https://opencollective.com/DockSTARTer
|
If you're taking about Plex we've got documentation about adding the device to the container https://dockstarter.com/apps/plex/#hardware-transcoding that same method should at least be similar with other containers of you're not talking about Plex. Those other containers might also have their own documentation about how to get the device in. All that is just done via overrides. That covers adding it to specific containers as needed, but not globally to all containers. I'm curious what your reasoning is for wanting it on ALL containers? Also about the compose versions, what example do you have that if specific to version 2.x that does not work on 3.x? |
Yes, this is regarding Plex. AFAIK nvidia GPU does not work with /dev/dri. It hasn't worked with any other docker setup, why would it work here? AFAIK nvidia-docker2 'only' (I just read, don't shoot the messenger) works with v2.3 (https://github.com/NVIDIA/nvidia-docker/wiki#do-you-support-docker-compose). If I can't use v2.3 with dockstarter, maybe it's possible to enable in the docker conf? It's just an idea. Thanks for the quick reply! |
https://github.com/NVIDIA/nvidia-docker/blob/master/README.md#quickstart according to their readme nvidia-docker2 is now deprecated. There should be an alternative way to achieve using their runtime, but I haven't dug that far into it. |
Sorry, my bad, it's not called docker-2 anymore. At the end it says:
So, to get it working you need to:
|
It looks like the new GPU support in docker 19.03 just needs to be added to compose for version 3.x. there's a few open issues on their GH you can follow. docker/compose#6691 The first one is more promising and the last one seems less likely given the GPU support added to engine. |
As far as I can see, the newest of those is 3 months old with no reply and was closed... It doesn't look too promising? |
I have tried in the past to allow the compose file version to be set by the user but have not been successful. I have some ideas about how I could do it, but this requires the compose templates we use to be made a little more version agnostic than they currently are. There's not a big demand for this at the moment, and some apps require features from newer compose versions (ex: labels introduced in compose file version 3.3). It makes more sense to request older apps to update than to restrict newer apps from functionality. |
I can confirm i have this working, override file for Plex is as below: version: "3.4" # this must match the version in docker-compose.yml I set it up a while ago, but i do know that i had to change the docker to use the nvidia runtime as default in /etc/docker/daemon.json { |
Sweet! Option nr. 2 it is! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is your feature request related to a problem? Please describe.
Passing through nvidia GPU to a container.
Describe the solution you'd like
Be able to use docker compose v2.3 or find a better way to get GPU to a container
Describe alternatives you've considered
This is on Ubuntu 18 with latest stabile docker.
The text was updated successfully, but these errors were encountered: