Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql 5.7 Docker build fails #491

Closed
bentito opened this issue Sep 14, 2018 · 1 comment
Closed

mysql 5.7 Docker build fails #491

bentito opened this issue Sep 14, 2018 · 1 comment

Comments

@bentito
Copy link

bentito commented Sep 14, 2018

I am running it on MacOS, but I don't think that matters.

Steps to reproduce:

Download mysql Docker file: https://github.com/docker-library/mysql/blob/9d1f62552b5dcf25d3102f14eb82b579ce9f4a26/5.7/Dockerfile ;
Run build. For instance: docker build -t mysql-prod -f Dockerfile . ;
Build ends in error:

Step 8/18 : RUN set -ex; 	key='A4A9406876FCBD3C456770C88C718D3B5072E1F5'; 	export GNUPGHOME="$(mktemp -d)"; 	gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; 	gpg --export "$key" > /etc/apt/trusted.gpg.d/mysql.gpg; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME"; 	apt-key list > /dev/null
 ---> Running in 9ea3bbeff7aa
+ key=A4A9406876FCBD3C456770C88C718D3B5072E1F5
+ mktemp -d
+ export GNUPGHOME=/tmp/tmp.Pdp6bvC8iI
+ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5
gpg: keybox '/tmp/tmp.Pdp6bvC8iI/pubring.kbx' created
gpg: keyserver receive failed: Cannot assign requested address
The command '/bin/sh -c set -ex; 	key='A4A9406876FCBD3C456770C88C718D3B5072E1F5'; 	export GNUPGHOME="$(mktemp -d)"; 	gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; 	gpg --export "$key" > /etc/apt/trusted.gpg.d/mysql.gpg; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME"; 	apt-key list > /dev/null' returned a non-zero code: 2
@yosifkit
Copy link
Member

This happens all the time. See docker-library/php#666 for how we combat this for TravisCI builds and on the official-images build servers. Without a MITM proxy, then the solution is to repeat the build multiple times or add extra gpg servers to hit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants