How to install only nvcc inside an nvidia/cuda base docker?

2.3k Views Asked by At

We use pytorch in a nvidia/cuda:xx.x-base-ubuntu18.04 (base) image with a final size of ~6 GB.

I know that nvcc is available in nvidia/cuda:xx.x-devel (devel) tag, but it increases the image size to > 10 GB.

Can I install nvcc only in the base image?

1

There are 1 best solutions below

2
On

nividia provided installers have command line options. this will allow to install selected components. (such as with or without graphics drivers, samples, docs, ...)