Getting the following error while building the image . Can't check signature: No public key
anudeep-modak opened this issue · 1 comments
gpg --batch --verify vault_1.6.2_SHA256SUMS.sig vault_1.6.2_SHA256SUMS
gpg: Signature made Thu Apr 22 17:17:10 2021 UTC
gpg: using RSA key B0B441097685B676
gpg: Can't check signature: No public key
The command '/bin/sh -c set -eux; apk add --no-cache ca-certificates gnupg openssl libcap su-exec dumb-init tzdata && apkArch="$(apk --print-arch)"; case "$apkArch" in armhf) ARCH='arm' ;; aarch64) ARCH='arm64' ;; x86_64) ARCH='amd64' ;; x86) ARCH='386' ;; *) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; esac && VAULT_GPGKEY=91A6E7F85D05C65630BEF18951852D87348FFC4C; found=''; for server in hkp://p80.pool.sks-keyservers.net:80 hkp://keyserver.ubuntu.com:80 hkp://pgp.mit.edu:80 ; do echo "Fetching GPG key $VAULT_GPGKEY from $server"; gpg --batch --keyserver "$server" --recv-keys "$VAULT_GPGKEY" && found=yes && break; done; test -z "$found" && echo >&2 "error: failed to fetch GPG key $VAULT_GPGKEY" && exit 1; mkdir -p /tmp/build && cd /tmp/build && wget https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_${ARCH}.zip && wget https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_SHA256SUMS && wget https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_SHA256SUMS.sig && gpg --batch --verify vault_${VAULT_VERSION}SHA256SUMS.sig vault${VAULT_VERSION}SHA256SUMS && grep vault${VAULT_VERSION}linux${ARCH}.zip vault_${VAULT_VERSION}SHA256SUMS | sha256sum -c && unzip -d /bin vault${VAULT_VERSION}linux${ARCH}.zip && cd /tmp && rm -rf /tmp/build && gpgconf --kill dirmngr && gpgconf --kill gpg-agent && apk del gnupg openssl && rm -rf /root/.gnupg' returned a non-zero code: 2
`
It is resolved now.Thanks!!