Docker creation failed to load repository keys (#2914)

This commit is contained in:
Igor Pečovnik
2021-06-22 08:06:05 +02:00
committed by GitHub
parent 4ce0b07280
commit 735eff92dc

View File

@@ -6,16 +6,14 @@ RUN apt-get update && apt-get -y install \
gnupg \
gnupg1 \
gpgv1 \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN sh -c " \
if [ $(dpkg --print-architecture) = amd64 ]; then \
if [ x'' != x$http_proxy ]; then \
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 \
--keyserver-options http-proxy=$http_proxy \
--recv-keys ED75B5A4483DA07C >/dev/null 2>&1; \
curl -fsSL -x $http_proxy https://www.aptly.info/pubkey.txt | apt-key add - >/dev/null 2>&1; \
else \
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 \
--recv-keys ED75B5A4483DA07C >/dev/null 2>&1; \
curl -fsSL https://www.aptly.info/pubkey.txt | apt-key add - >/dev/null 2>&1; \
fi; \
echo \"deb http://repo.aptly.info/ nightly main\" > /etc/apt/sources.list.d/aptly.list; \
dpkg --add-architecture i386 \
@@ -44,7 +42,6 @@ RUN apt-get update \
cpio \
cryptsetup \
cryptsetup-bin \
curl \
debian-archive-keyring \
debian-keyring \
debootstrap \