STEP 1/10: FROM debian:buster-slim STEP 2/10: LABEL maintainer="NGINX Docker Maintainers " --> Using cache 19ba62c1438c1ad05d15c3f5dcc882a4e2cd637b8f558b4be990ba1ce62c05b7 --> 19ba62c1438 STEP 3/10: ENV NGINX_VERSION 1.17.10 --> Using cache 765b77c099fd40532cc44abfe9fd8bedd946283b187d436a32771a9784eb778b --> 765b77c099f STEP 4/10: ENV NJS_VERSION 0.3.9 --> Using cache 60ed91cc39904e274b9dd80912233c46da95d9f804820a1f784054e6f588dc35 --> 60ed91cc399 STEP 5/10: ENV PKG_RELEASE 1~buster --> Using cache 8f1045d10db60c79ff8907c652f60a3a2cf31aa8db273f3e1c1e61f4e80afb63 --> 8f1045d10db STEP 6/10: RUN set -x && addgroup --system --gid 101 nginx && adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx && apt-get update && apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates && NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62; found=''; for server in ha.pool.sks-keyservers.net hkp://keyserver.ubuntu.com:80 hkp://p80.pool.sks-keyservers.net:80 pgp.mit.edu ; do echo "Fetching GPG key $NGINX_GPGKEY from $server"; apt-key adv --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" && found=yes && break; done; test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* && dpkgArch="$(dpkg --print-architecture)" && nginxPackages=" nginx=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-${PKG_RELEASE} " && case "$dpkgArch" in amd64|i386) echo "deb https://nginx.org/packages/mainline/debian/ buster nginx" >> /etc/apt/sources.list.d/nginx.list && apt-get update ;; *) echo "deb-src https://nginx.org/packages/mainline/debian/ buster nginx" >> /etc/apt/sources.list.d/nginx.list && tempDir="$(mktemp -d)" && chmod 777 "$tempDir" && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get build-dep -y $nginxPackages && ( cd "$tempDir" && DEB_BUILD_OPTIONS="nocheck parallel=$(nproc)" apt-get source --compile $nginxPackages ) && apt-mark showmanual | xargs apt-mark auto > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; } && ls -lAFh "$tempDir" && ( cd "$tempDir" && dpkg-scanpackages . > Packages ) && grep '^Package: ' "$tempDir/Packages" && echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list && apt-get -o Acquire::GzipIndexes=false update ;; esac && apt-get install --no-install-recommends --no-install-suggests -y $nginxPackages gettext-base && apt-get remove --purge --auto-remove -y ca-certificates && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list && if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove && rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi + addgroup --system --gid 101 nginx Adding group `nginx' (GID 101) ... Done. + adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos nginx user --shell /bin/false --uid 101 nginx Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory Adding system user `nginx' (UID 101) ... Adding new user `nginx' (UID 101) with group `nginx' ... Not creating home directory `/nonexistent'. + apt-get update Err:1 http://deb.debian.org/debian buster InRelease Connection failed [IP: 146.75.118.132 80] Err:2 http://deb.debian.org/debian-security buster/updates InRelease Connection failed [IP: 146.75.118.132 80] Err:3 http://deb.debian.org/debian buster-updates InRelease Connection failed [IP: 146.75.118.132 80] Reading package lists... W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease Connection failed [IP: 146.75.118.132 80] W: Failed to fetch http://deb.debian.org/debian-security/dists/buster/updates/InRelease Connection failed [IP: 146.75.118.132 80] W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease Connection failed [IP: 146.75.118.132 80] W: Some index files failed to download. They have been ignored, or old ones used instead. + apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates Reading package lists... Building dependency tree... Reading state information... Package ca-certificates is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source Package gnupg1 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'gnupg1' has no installation candidate E: Package 'ca-certificates' has no installation candidate + found= + echo Fetching GPG key from ha.pool.sks-keyservers.net Fetching GPG key from ha.pool.sks-keyservers.net + apt-key adv --keyserver ha.pool.sks-keyservers.net --keyserver-options timeout=10 --recv-keys E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation + echo Fetching GPG key from hkp://keyserver.ubuntu.com:80 Fetching GPG key from hkp://keyserver.ubuntu.com:80 + apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options timeout=10 --recv-keys E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation + echo Fetching GPG key from hkp://p80.pool.sks-keyservers.net:80 Fetching GPG key from hkp://p80.pool.sks-keyservers.net:80 + apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --keyserver-options timeout=10 --recv-keys E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation Fetching GPG key from pgp.mit.edu + echo Fetching GPG key from pgp.mit.edu + apt-key adv --keyserver pgp.mit.edu --keyserver-options timeout=10 --recv-keys E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation + test -z + echo error: failed to fetch GPG key error: failed to fetch GPG key + exit 1 Error: building at STEP "RUN set -x && addgroup --system --gid 101 nginx && adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx && apt-get update && apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates && NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62; found=''; for server in ha.pool.sks-keyservers.net hkp://keyserver.ubuntu.com:80 hkp://p80.pool.sks-keyservers.net:80 pgp.mit.edu ; do echo "Fetching GPG key $NGINX_GPGKEY from $server"; apt-key adv --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" && found=yes && break; done; test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* && dpkgArch="$(dpkg --print-architecture)" && nginxPackages=" nginx=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-${PKG_RELEASE} " && case "$dpkgArch" in amd64|i386) echo "deb https://nginx.org/packages/mainline/debian/ buster nginx" >> /etc/apt/sources.list.d/nginx.list && apt-get update ;; *) echo "deb-src https://nginx.org/packages/mainline/debian/ buster nginx" >> /etc/apt/sources.list.d/nginx.list && tempDir="$(mktemp -d)" && chmod 777 "$tempDir" && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get build-dep -y $nginxPackages && ( cd "$tempDir" && DEB_BUILD_OPTIONS="nocheck parallel=$(nproc)" apt-get source --compile $nginxPackages ) && apt-mark showmanual | xargs apt-mark auto > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; } && ls -lAFh "$tempDir" && ( cd "$tempDir" && dpkg-scanpackages . > Packages ) && grep '^Package: ' "$tempDir/Packages" && echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list && apt-get -o Acquire::GzipIndexes=false update ;; esac && apt-get install --no-install-recommends --no-install-suggests -y $nginxPackages gettext-base && apt-get remove --purge --auto-remove -y ca-certificates && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list && if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove && rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi": while running runtime: exit status 1