Hi, I'm working on my docker setup and started to get this error every time I try to install node.
Can anyone please help?
Error is : + gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 9554F04D7259F04124DE6B476D5A82AC7E37093B
/bin/sh: 1: gpg: not found
Below is my build:
Step 1/10 : FROM php:7.2-apache
---> 6d09ebcefa10
Step 2/10 : ADD add_php.ini /usr/local/etc/php/conf.d/
---> Using cache
---> 7e2c05bd53ea
Step 3/10 : RUN apt-get update -y && apt-get install -y libpng-dev libjpeg-dev zip unzip git
---> Using cache
---> 317993f422c6
Step 4/10 : RUN docker-php-ext-configure gd --with-jpeg-dir=/usr/lib/x86_64-linux-gnu/ && docker-php-ext-install pdo pdo_mysql gd mbstring zip
---> Using cache
---> 89d533a8b73f
Step 5/10 : RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
---> Using cache
---> c856e9fd97d4
Step 6/10 : RUN composer global require "hirak/prestissimo:^0.3"
---> Using cache
---> 9fddd41d85b7
Step 7/10 : RUN set -ex && for key in 9554F04D7259F04124DE6B476D5A82AC7E37093B 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 FD3A5288F042B6850C66B31F09FE44734EB7990E 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 DD8F2338BAE7501E3DD5AC78C273792F7D83545D B9AE9905FFD7803F25714661B63B535A4C206CA9 C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 ; do gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done
---> Running in ecb54818e8a3
+ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 9554F04D7259F04124DE6B476D5A82AC7E37093B
/bin/sh: 1: gpg: not found
ERROR: Service 'ams2' failed to build: The command '/bin/sh -c set -ex && for key in 9554F04D7259F04124DE6B476D5A82AC7E37093B 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 FD3A5288F042B6850C66B31F09FE44734EB7990E 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 DD8F2338BAE7501E3DD5AC78C273792F7D83545D B9AE9905FFD7803F25714661B63B535A4C206CA9 C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 ; do gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done' returned a non-zero code: 127
Install gpg and dirmngr
apt-get install -y gnupg dirmngr
Also, we're happy to help, but issues here should be focused on the docker node image, not general docker questions.
Most helpful comment
Install gpg and dirmngr
Also, we're happy to help, but issues here should be focused on the docker node image, not general docker questions.