{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/20824","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/20824/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/20824/comments","events_url":"https://api.github.com/repos/docker/docker/issues/20824/events","html_url":"https://github.com/docker/docker/pull/20824","id":137633681,"number":20824,"title":"cliconfig: credentials: support getting all auths","user":{"login":"runcom","id":849915,"avatar_url":"https://avatars.githubusercontent.com/u/849915?v=3","gravatar_id":"","url":"https://api.github.com/users/runcom","html_url":"https://github.com/runcom","followers_url":"https://api.github.com/users/runcom/followers","following_url":"https://api.github.com/users/runcom/following{/other_user}","gists_url":"https://api.github.com/users/runcom/gists{/gist_id}","starred_url":"https://api.github.com/users/runcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runcom/subscriptions","organizations_url":"https://api.github.com/users/runcom/orgs","repos_url":"https://api.github.com/users/runcom/repos","events_url":"https://api.github.com/users/runcom/events{/privacy}","received_events_url":"https://api.github.com/users/runcom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94"},{"url":"https://api.github.com/repos/docker/docker/labels/status/2-code-review","name":"status/2-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2016-03-01T17:10:58Z","updated_at":"2016-03-02T22:11:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/20824","html_url":"https://github.com/docker/docker/pull/20824","diff_url":"https://github.com/docker/docker/pull/20824.diff","patch_url":"https://github.com/docker/docker/pull/20824.patch"},"body":"Fixes #20830\r\n\r\n`docker build` broke after the client credentials store PR because building `FROM` images that are on a registry which requires auth gets you:\r\n```\r\n$ docker --config `pwd` build .               \r\n\r\nSending build context to Docker daemon 3.072 kB\r\nStep 1 : FROM myregistrydomain.com:5001/busybox\r\nPulling repository myregistrydomain.com:5001/busybox\r\nError: image busybox not found\r\n```\r\n`myregistrydomain.com:5001/busybox` is on the registry but the registry has auth, credentials aren't sent to the registry because the credentials will send only an empty config.json (the one configured with --config which just has \"credsStore\":\"something\")\r\n\r\nafter my patch:\r\n```\r\n$ docker -D --config `pwd` build .                    \r\n\r\nSending build context to Docker daemon 3.072 kB\r\nStep 1 : FROM myregistrydomain.com:5001/busybox\r\nlatest: Pulling from busybox\r\nDigest: sha256:c431ca187a895d44e25947d55d51fd54709a28f7b75b48e3a68cd2106b72f007\r\nStatus: Downloaded newer image for myregistrydomain.com:5001/busybox:latest\r\n ---> 3240943c9ea3\r\nStep 2 : RUN echo \"foobar\"\r\n ---> Using cache\r\n ---> 24458a2b10cc\r\nSuccessfully built 24458a2b10cc\r\n```\r\n\r\nSigned-off-by: Antonio Murdaca <runcom@redhat.com>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/191455962","html_url":"https://github.com/docker/docker/pull/20824#issuecomment-191455962","issue_url":"https://api.github.com/repos/docker/docker/issues/20824","id":191455962,"user":{"login":"calavera","id":1050,"avatar_url":"https://avatars.githubusercontent.com/u/1050?v=3","gravatar_id":"","url":"https://api.github.com/users/calavera","html_url":"https://github.com/calavera","followers_url":"https://api.github.com/users/calavera/followers","following_url":"https://api.github.com/users/calavera/following{/other_user}","gists_url":"https://api.github.com/users/calavera/gists{/gist_id}","starred_url":"https://api.github.com/users/calavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calavera/subscriptions","organizations_url":"https://api.github.com/users/calavera/orgs","repos_url":"https://api.github.com/users/calavera/repos","events_url":"https://api.github.com/users/calavera/events{/privacy}","received_events_url":"https://api.github.com/users/calavera/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T22:11:17Z","updated_at":"2016-03-02T22:11:17Z","body":"I think having `GetAll` in the interface makes sense."}}