Re:Nvidia-Docker – Build and Run Docker Containers Leveragin...
by flx42_ on Friday August 18, 2017 @01:02PM
(#15047867)
We document how this on our wiki:
https://github.com/NVIDIA/nvidia-docker/wiki/Internals
> The added benefit of this is that you can use different versions of the drivers side-by-side (in my understanding).
No, you can only have one driver version, the one that correspond to the loaded kernel modules. Installing the driver inside a Docker image makes it non-portable.
Re:Nvidia-Docker – Build and Run Docker Containers Leveragin...
by ThePhysicist on Friday August 18, 2017 @04:22PM
(#15049433)
Ah thanks for the clarification, I was not aware of this!
Re:Nvidia-Docker – Build and Run Docker Containers Leveragin...
by arnon on Saturday August 19, 2017 @04:33AM
(#15052353)
It's also possible to set up CUDA in LXC
https://sqream.com/cuda-in-lxc-containers/
https://stackoverflow.com/questions/25185405/using-gpu-from-...
In a nutshell, you can give the container access to the NVIDIA device file via the `--device` flag, so all you need is a container with the NVIDIA drivers. The added benefit of this is that you can use different versions of the drivers side-by-side (in my understanding).
I thought this might be relevant as some people might not want to use the `docker-nvidia` CLI to run containers (I'm not sure how you would use this via the Docker API for example).