{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/14536","labels_url":"https://api.github.com/repos/docker/docker/issues/14536/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/14536/comments","events_url":"https://api.github.com/repos/docker/docker/issues/14536/events","html_url":"https://github.com/docker/docker/issues/14536","id":94384824,"number":14536,"title":"Docker build from private image not authorized?","user":{"login":"ulimit","id":7584665,"avatar_url":"https://avatars.githubusercontent.com/u/7584665?v=3","gravatar_id":"","url":"https://api.github.com/users/ulimit","html_url":"https://github.com/ulimit","followers_url":"https://api.github.com/users/ulimit/followers","following_url":"https://api.github.com/users/ulimit/following{/other_user}","gists_url":"https://api.github.com/users/ulimit/gists{/gist_id}","starred_url":"https://api.github.com/users/ulimit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulimit/subscriptions","organizations_url":"https://api.github.com/users/ulimit/orgs","repos_url":"https://api.github.com/users/ulimit/repos","events_url":"https://api.github.com/users/ulimit/events{/privacy}","received_events_url":"https://api.github.com/users/ulimit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-10T20:25:22Z","updated_at":"2015-07-10T20:40:11Z","closed_at":"2015-07-10T20:40:11Z","body":"We recently upgraded to docker 1.7 from docker 1.5 (yesterday). Now we're experiencing an odd issue, our docker builds can't pull our private images via dockerfile. CLI docker pulls work just fine though... Here's how to reproduce:\r\nNote: bunchballdev is our company dockerhub group\r\n#login\r\n$ sudo docker login\r\nUsername: [username]\r\nPassword:\r\nEmail: stuff@example.com\r\nWARNING: login credentials saved in /home/<homedir>/.docker/config.json\r\nLogin Succeeded\r\n\r\n##the most basic dockerfile\r\n$ cat Dockerfile\r\nFROM bunchballdev/fedora\r\nRUN echo \"got here\"\r\n\r\n##building it responds with the error message that it doesn't exist, but also could be that I'm not authorized\r\n$ sudo docker build .\r\nSending build context to Docker daemon 20.48 kB\r\nSending build context to Docker daemon\r\nStep 0 : FROM bunchballdev/fedora\r\nPulling repository bunchballdev/fedora\r\nError: image bunchballdev/fedora:latest not found\r\n\r\n##clearly it not only exists, but I'm authorized to pull it\r\n$ sudo docker pull bunchballdev/fedora\r\nlatest: Pulling from bunchballdev/fedora\r\n48ecf305d2cf: Pull complete\r\nded7cd95e059: Pull complete\r\n08146ed4d2fb: Pull complete\r\nd6683cfa8605: Pull complete\r\nf7490fdf7bd6: Pull complete\r\n33a9229518a7: Already exists\r\nDigest: sha256:45df6c06cab4211fbfd730e608e7ef374c2fec8fb9ccd6b849ca46f3128965dc\r\nStatus: Downloaded newer image for bunchballdev/fedora:latest\r\n\r\n##Just in case I'm an idiot and referencing a different base image\r\n$ sudo docker build .\r\nSending build context to Docker daemon 20.48 kB\r\nSending build context to Docker daemon\r\nStep 0 : FROM bunchballdev/fedora\r\n ---> 33a9229518a7\r\nStep 1 : RUN echo \"got here\"\r\n ---> Running in f9175b949870\r\ngot here\r\n ---> 141398bf5586\r\nRemoving intermediate container f9175b949870\r\nSuccessfully built 141398bf5586\r\n\r\nsoooooo, docker build is somehow using a different authfile than docker pull, but I don't see how that could be given the following:\r\nhttps://github.com/docker/docker/blob/master/api/client/build.go#L281\r\n\r\nHere's my specs:\r\n$ sudo docker -D info\r\nContainers: 0\r\nImages: 242\r\nStorage Driver: btrfs\r\n Build Version: Btrfs v4.0\r\n Library Version: 101\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 3.19.3-200.fc21.x86_64\r\nOperating System: Fedora 21 (Twenty One)\r\nCPUs: 4\r\nTotal Memory: 14.69 GiB\r\nName: <hostname>\r\nID: C3GX:NQYI:PVQJ:3YK3:K4WT:EMMF:PKEG:XNDG:QO6S:FKCS:62LI:5WQT\r\nUsername: <username>\r\nRegistry: https://index.docker.io/v1/\r\n\r\n$ sudo docker version\r\nClient version: 1.7.0\r\nClient API version: 1.19\r\nGo version (client): go1.4.2\r\nGit commit (client): 0baf609-dirty\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.7.0\r\nServer API version: 1.19\r\nGo version (server): go1.4.2\r\nGit commit (server): 0baf609-dirty\r\nOS/Arch (server): linux/amd64"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/120516605","html_url":"https://github.com/docker/docker/issues/14536#issuecomment-120516605","issue_url":"https://api.github.com/repos/docker/docker/issues/14536","id":120516605,"user":{"login":"cpuguy83","id":799078,"avatar_url":"https://avatars.githubusercontent.com/u/799078?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuguy83","html_url":"https://github.com/cpuguy83","followers_url":"https://api.github.com/users/cpuguy83/followers","following_url":"https://api.github.com/users/cpuguy83/following{/other_user}","gists_url":"https://api.github.com/users/cpuguy83/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuguy83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuguy83/subscriptions","organizations_url":"https://api.github.com/users/cpuguy83/orgs","repos_url":"https://api.github.com/users/cpuguy83/repos","events_url":"https://api.github.com/users/cpuguy83/events{/privacy}","received_events_url":"https://api.github.com/users/cpuguy83/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T20:40:11Z","updated_at":"2015-07-10T20:40:11Z","body":"Hi, this is fixed in the upcoming 1.7.1 release (should be released on Tuesday).\r\nYou can test the latest RC here: https://github.com/docker/docker/pull/14264#issuecomment-120166928"}}