Skip to content

Commit f1a3cfc

Browse files
authored
Fix NVIDIA GPG key issue. (#1151)
Context: https://github.com/NVIDIA/nvidia-docker/issues/1631 The next `deeplearning-platform-release/tf2-gpu.2-6` should remove the need for this workaround. http://b/230864778
1 parent b097f2e commit f1a3cfc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile.tmpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ RUN pip uninstall -y horovod && \
5454
# Use a fixed apt-get repo to stop intermittent failures due to flaky httpredir connections,
5555
# as described by Lionel Chan at http://stackoverflow.com/a/37426929/5881346
5656
RUN sed -i "s/httpredir.debian.org/debian.uchicago.edu/" /etc/apt/sources.list && \
57+
# b/230864778: Temporarily swap the NVIDIA GPG key. Remove once new base image with new GPG key is released.
58+
rm /etc/apt/sources.list.d/cuda.list && \
59+
apt-key del 7fa2af80 && \
60+
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub && \
5761
apt-get update && \
5862
# Needed by lightGBM (GPU build)
5963
# https://lightgbm.readthedocs.io/en/latest/GPU-Tutorial.html#build-lightgbm

0 commit comments

Comments
 (0)