It looks like nvcc isn’t installed in the PyTorch docker image.
Could you try to pull the NVIDIA PyTorch docker container instead:
nvidia-docker run --rm -ti --ipc=host nvcr.io/nvidia/pytorch:19.05-py3

, which comes with CUDA10.1.
Let me know, if that would work for you.