-
Notifications
You must be signed in to change notification settings - Fork 662
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
How to use with Docker 19.03 / nvidia-container-toolkit ? #168
Comments
Yeah, with docker 19.03 and the requirement to only install Try modifying
There is no need for this to be set anymore for docker alone, but it is still needed for the |
|
That gives the error It appears that nvidia-docker-toolkit and nvidia-docker2 can be installed simultaneously. I did that, which gave me a nvidia-container-runtime which I put in daemon.json and it looks like it's working at first glance. |
Sorry. Yes. I'm confusing 2 different things. I apologize. If you want to use K8s with docker 19.03 and GPUs, you need to continue using That said, All this wrapper does is take the runc spec as input, inject the So you are basically running on the exact same stack as you would be whether you install |
Thanks! I appear to be working fine. You're welcome to close the issue or leave it open as a documentation issue so that your excellent explanation is more visible to others. |
1. Issue or feature description
The documentation appears to be for use with nvidia-docker2, which has been deprecated and replaced with nvidia-container-toolkit, as far as I can tell.
2. Steps to reproduce the issue
sudo docker run --gpus all nvidia/cuda:10.0-base nvidia-smi
Resulting error:
nvidia-container-toolkit doesn't provide an "nvidia" runtime, so I can't make it the default
3. Information to attach (optional if deemed irrelevant)
docker version: 19.03.8
kubernetes version: 1.18.2
nvidia-container-cli -V: version: 1.0.7
nvidia-driver: 440.59-0ubuntu0.18.04
The text was updated successfully, but these errors were encountered: