I’m trying to build a docker image that can run using GPUS, this my situation:
Schermata 2020-08-09 alle 12.08.24607×615 24.1 KB
I have python 3.6 and I am starting from image nvidia/cuda:10.0-cudnn7-devel.
Torch does not see my GPUs.
nvidia-smi is not working to, returning error:

Failed to initialize NVML: Unknown Error
The command ‘/bin/sh -c nvidia-smi’ returned a non-zero code: 255

I installed nvidia toolkit and nvidia-smi with

RUN apt install nvidia-cuda-toolkit -y
RUN apt-get install nvidia-utils-410 -y