anchor.diff:        cuda-nvml-dev-$CUDA_PKG_VERSION \
         cuda-minimal-build-$CUDA_PKG_VERSION \
         cuda-command-line-tools-$CUDA_PKG_VERSION \
  -      libcudnn7=7.6.5.32-1+cuda10.1 \
  -      libcudnn7-dev=7.6.5.32-1+cuda10.1 \
  -      libnccl2=2.5.6-1+cuda10.1 \
  -      libnccl-dev=2.5.6-1+cuda10.1 && \
  -    ln -s /usr/local/cuda-10.1 /usr/local/cuda && \
  +      libcudnn7=7.6.5.32-1+cuda$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION \
  +      libcudnn7-dev=7.6.5.32-1+cuda$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION \
  +      libnccl2=2.5.6-1+cuda$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION \
  +      libnccl-dev=2.5.6-1+cuda$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION && \
  +    ln -s /usr/local/cuda-$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION /usr/local/cuda && \
       ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1
   
   # Work to upgrade to Python 3.7 can be found on this branch: https://github.com/Kaggle/docker-python/blob/upgrade-py37/Dockerfile
  
positive.code: 
  # Ensure the cuda libraries are compatible with the GPU image.
  # TODO(b/120050292): Use templating to keep in sync.
  ENV CUDA_VERSION=10.1.243
  ENV CUDA_PKG_VERSION=10-1=$CUDA_VERSION-1
  LABEL com.nvidia.volumes.needed="nvidia_driver"
  LABEL com.nvidia.cuda.version="${CUDA_VERSION}"
  ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
  
negative.code: ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs"
  ENV NVIDIA_VISIBLE_DEVICES=all
  ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
  ENV NVIDIA_REQUIRE_CUDA="cuda>=$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION"
  RUN apt-get update && apt-get install -y --no-install-recommends \
        cuda-cupti-$CUDA_PKG_VERSION \
        cuda-cudart-$CUDA_PKG_VERSION \
  