Skip to content

Commit 4a18cff

Browse files
authored
Fix nvidia docker key (#255)
* Fix nvidia key * Test if it actually fails * Undo * Don't delete prior key
1 parent 1d03c9f commit 4a18cff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: Dockerfile-cuda

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ FROM nvidia/cuda:11.2.0-cudnn8-devel-ubuntu20.04
22

33
ARG branch
44

5+
# Fix NVIDIA CUDA Linux repository key rotation
6+
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1
7+
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu$(cat /etc/os-release | grep VERSION_ID | awk '{print substr($0,13,5)}' | awk -F'.' '{print $1$2}')/x86_64/3bf863cc.pub
8+
59
# Install dependencies
610
RUN apt-get update && \
711
apt-get --yes install git sudo apt-utils

0 commit comments

Comments
 (0)