Nvidia runtime (--runtime=nvidia)
I want to run docker with this parametr
runtime=nvidia
E.g. cli command is:
docker run --rm --runtime=nvidia nvidia/cuda:9.0-devel nvcc --version
Now I sucsessfully running my service via dotnet
Its equvalent this command:
docker run -p 5000:5000 gosha20777/my-service:1.2
But I want to run also it with nvidia docker (nvidia runtime)
docker run --runtime=nvidia -p 5000:5000 gosha20777/my-gpu-service:1.2
How I can do it?
Is there any way to specify runtime?
I think you’re looking for:
https://github.com/dotnet/Docker.DotNet/blob/13ad3a144d24af0451d5a1c5f749a92e1252888f/src/Docker.DotNet/Models/HostConfig.Generated.cs#L148
I think you’re looking for:
https://github.com/dotnet/Docker.DotNet/blob/13ad3a144d24af0451d5a1c5f749a92e1252888f/src/Docker.DotNet/Models/HostConfig.Generated.cs#L148
Yes! Thank you @HofmeisterAn, I was about to post an update with the finding 😂.
However, I couldn't find options for --gpus. Any idea where to find it? 🙏
I think you need:
https://github.com/dotnet/Docker.DotNet/blob/f58748616cc5b679b25496926c5688294c94d850/src/Docker.DotNet/Models/HostConfig.Generated.cs#L205
Similar to the Docker Compose configuration.
@HofmeisterAn Big thanks!!
I think what @HofmeisterAn actually mean is https://github.com/dotnet/Docker.DotNet/blob/f58748616cc5b679b25496926c5688294c94d850/src/Docker.DotNet/Models/HostConfig.Generated.cs#L211