{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/20737","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/20737/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/20737/comments","events_url":"https://api.github.com/repos/docker/docker/issues/20737/events","html_url":"https://github.com/docker/docker/pull/20737","id":136859677,"number":20737,"title":"Use multiple keyservers in install script","user":{"login":"mikedougherty","id":1046019,"avatar_url":"https://avatars.githubusercontent.com/u/1046019?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedougherty","html_url":"https://github.com/mikedougherty","followers_url":"https://api.github.com/users/mikedougherty/followers","following_url":"https://api.github.com/users/mikedougherty/following{/other_user}","gists_url":"https://api.github.com/users/mikedougherty/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedougherty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedougherty/subscriptions","organizations_url":"https://api.github.com/users/mikedougherty/orgs","repos_url":"https://api.github.com/users/mikedougherty/repos","events_url":"https://api.github.com/users/mikedougherty/events{/privacy}","received_events_url":"https://api.github.com/users/mikedougherty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/0-triage","name":"status/0-triage","color":"EEEEEE"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-27T01:24:52Z","updated_at":"2016-02-27T01:32:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/20737","html_url":"https://github.com/docker/docker/pull/20737","diff_url":"https://github.com/docker/docker/pull/20737.diff","patch_url":"https://github.com/docker/docker/pull/20737.patch"},"body":"<!--\r\nPlease make sure you've read and understood our contributing guidelines;\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md\r\n\r\n** Make sure all your commits include a signature generated with `git commit -s` **\r\n\r\nFor additional information on our contributing process, read our contributing\r\nguide https://docs.docker.com/opensource/code/\r\n\r\nIf this is a bug fix, make sure your description includes \"fixes #xxxx\", or\r\n\"closes #xxxx\"\r\n-->\r\n\r\nPlease provide the following information:\r\n\r\n- What did you do?\r\nExpanded the keyserver functionality in the install.sh script. This improves on an earlier change by adding another keyserver and using a for loop instead of duplicating the command\r\n\r\n- How did you do it?\r\n`for` loop over a list of hostnames, instead of duplicating the command.\r\n\r\n- How do I see it or verify it?\r\n```bash\r\n$ docker run --rm -it --add-host ha.pool.sks-keyservers.net:127.0.0.1 --add-host pgp.mit.edu:127.0.0.1 -v \"$(pwd):/src\" ubuntu /src/hack/install.sh\r\n## ... snip\r\n+ sh -c apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D\r\nExecuting: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.ZQuDcMlpvK --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D\r\ngpg: requesting key 2C52609D from hkp server ha.pool.sks-keyservers.net\r\n?: ha.pool.sks-keyservers.net: Connection refused\r\ngpgkeys: HTTP fetch error 7: couldn't connect: Connection refused\r\ngpg: no valid OpenPGP data found.\r\ngpg: Total number processed: 0\r\n+ sh -c apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D\r\nExecuting: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.S9lXrmH1le --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D\r\ngpg: requesting key 2C52609D from hkp server pgp.mit.edu\r\n?: pgp.mit.edu: Connection refused\r\ngpgkeys: HTTP fetch error 7: couldn't connect: Connection refused\r\ngpg: no valid OpenPGP data found.\r\ngpg: Total number processed: 0\r\n+ sh -c apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D\r\nExecuting: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.uPxD6g6g8J --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D\r\ngpg: requesting key 2C52609D from hkp server keyserver.ubuntu.com\r\ngpg: key 2C52609D: public key \"Docker Release Tool (releasedocker) <docker@docker.com>\" imported\r\ngpg: Total number processed: 1\r\ngpg:               imported: 1  (RSA: 1)\r\n## ... snip\r\n```\r\n\r\nA similar test can be run with all three domains pointed to localhost, which exits in an error state and the stderr message `gpg: error reading key: public key not found`\r\n\r\n- A picture of a cute animal (not mandatory but encouraged)\r\n\r\nSadly not mine, blatantly stolen from /r/aww:\r\n![](https://i.imgur.com/faWXFL4.jpg)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/189547555","html_url":"https://github.com/docker/docker/pull/20737#issuecomment-189547555","issue_url":"https://api.github.com/repos/docker/docker/issues/20737","id":189547555,"user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T01:32:16Z","updated_at":"2016-02-27T01:32:16Z","body":"Nice!   LGTM :+1:"}}