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

Try multiple gpg keyservers #586

Closed
csandanov opened this issue Feb 13, 2018 · 2 comments
Closed

Try multiple gpg keyservers #586

csandanov opened this issue Feb 13, 2018 · 2 comments

Comments

@csandanov
Copy link

csandanov commented Feb 13, 2018

I often get an error gpg: keyserver receive failed: No keyserver available. I suggest to try multiple key servers if one fails:

ha.pool.sks-keyservers.net
hkp://keyserver.ubuntu.com:80
hkp://p80.pool.sks-keyservers.net:80
pgp.mit.edu

It's really hard to understand sometimes why a key server isn't available, for example, it may be available from travisci but not available from a local machine. It could be caused by proxy services (.e.g. cloudflare) IPs being blocked by a government regulator (hello to abhorrent Roskomnadzor) which used by a key server. Besides, sometimes it just randomly happens even on travisci, so it can improve the build time.

Example script: https://github.com/wodby/alpine/blob/master/bin/gpg_verify

@yosifkit
Copy link
Member

yosifkit commented Feb 13, 2018

@tianon
Copy link
Member

tianon commented Mar 21, 2018

Indeed, this is a rampant issue with the public PGP infrastructure in general.

We've gone back and forth on adding a similar loop but don't want to yet open the flood gates to repeat this loop in all of the images maintained in http://github.com/docker-library. We recommend just pulling the images from Docker Hub rather than building them yourself, but if you must build it, then editing the file to choose a gpg server that is better for your location is the solution (a quick sed or awk before docker build).

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

3 participants