Sumac:

In docker container, command return nvcc: command not found.
Other docker container (that can use GPU) return same message.
Is there something wrong in my all Dockerfile?


This would mean that the CUDA compiler cannot be used inside the container and thus PyTorch also isn’t built with CUDA support.
Make sure you can execute nvcc in nvidia/cuda:10.2-cudnn8-runtime-ubuntu18.04 by launching it with nvidia-docker or with the --gpus all argument in newer docker versions.