-
Notifications
You must be signed in to change notification settings - Fork 2k
Example of nvidia-docker2 with docker-compose #568
Comments
It's work in progress for docker-compose: In the meantime, you can set our runtime as the default runtime, and it will work. |
Thanks so I looked at the container that is created, it has nvcc as I can run the command and get the details but nvidia-smi results in command not found
Also under the daemon.json in /etc/docker I can see the following.
Is there anything I need to do specifically to make nvidia the default runtime ? |
Add |
Awesome @flx42 that worked! Thanks to you and @3XX0 for quick help 👍
|
Where exactly do you place the
|
@ngreenwald89 there is an example here: https://github.com/NVIDIA/k8s-device-plugin#preparing-your-gpu-nodes |
@ngreenwald89 For me the path needed /usr/bin/ otherwise it never worked
|
Is this still work in progress? More than one and a half years later? |
From my reading of nvidia-docker documentation, using
UPDATE:
The downside is that you have to have root to make these changes, but then again, if someone adds you to the 'docker' group, they likely trust you. The upside is, we are no longer limited to docker-compose v2.3 |
1. Issue or feature description
Hi, I am getting started with nvidia-docker. I have been able to install the dependencies and can see the output for nvidia-smi run through nvidia-docker. I am trying to see how to use this within a docker-compose file. I went through the documentation but could not find any example of specifying the runtime. It will be great if you can provide some pointers around this.
Most of the tutorials also work only with nvidia docker v1. Example: http://collabnix.com/deploying-application-in-the-gpu-accelerated-data-center-using-docker/
2. Steps to reproduce the issue
3. Information to attach (optional if deemed irrelevant)
The text was updated successfully, but these errors were encountered: