nvidia-docker icon indicating copy to clipboard operation
nvidia-docker copied to clipboard

With Docker18.09+nvidia-docker2, cudatoolkit can be installed only inside docker?

Open startfromzero0 opened this issue 2 years ago • 3 comments

If you use docker18.09+nvidia-docker2, can cudatoolkit be installed only in docker, and the host machine is not installed?

startfromzero0 avatar Mar 11 '22 14:03 startfromzero0

Hi @startfromzero0 the CUDA driver must be available on the host, but the CUDA toolkit can be installed in a container. Alternatively one of the nvidia/cuda docker images can be used.

elezar avatar Mar 11 '22 15:03 elezar

Thanks for your answer,I still have a question,do I need to install the CUDA driver again in the docker container?

startfromzero0 avatar Mar 21 '22 07:03 startfromzero0

No, the driver is only installed on the host. The NVIDIA Container Toolkit ensures that the required driver libraries are made available to the container.

elezar avatar Mar 21 '22 08:03 elezar