In case you didn't see this thread ---------- Forwarded message ---------- From: *Christopher Snell* <[email protected]> Date: Wednesday, April 29, 2015 Subject: Private docker registry authentication To: [email protected]
Alright, I'm using Aurora so I will have to dig deeper to see if I can figure out how to get that framework to pass the URI to the .dockercfg. thanks, C On Wed, Apr 29, 2015 at 8:56 PM, Mingqi Shao <[email protected] <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: > You need include a URI pointing to the .dockercfg file in your mesos task. > > please refer the link, Private Docker repository section: > http://mesos.apache.org/documentation/latest/docker-containerizer/ > > > On Thu, Apr 30, 2015 at 11:29 AM, Christopher Snell <[email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: > >> Hi All, >> >> I'm trying to get mesos-slave to pull images from my private docker >> registry but it's having authentication problems. I have a .dockercfg >> generated from a successful 'docker login' but that file is not being put >> into the containers and thus, is not present with mesos-slave attempts to >> pull down a docker image. >> >> Here's what I've done: >> >> - I put a config file in /root/.dockercfg >> >> - This file is owned by root and mode 600 >> >> - The HOME environment variable is set to /root when mesos-slave is >> started (as root) >> >> - I can log onto the slaves and manually do a 'docker login' to my >> private registry and once that's done, I can push and pull images manually >> from the CLI no problemo. >> >> - Docker is definitely hitting the private registry when mesos-slave >> executes the job, but the auth is not being sent and so the docker pull >> fails. >> >> - Here's the shell script that starts mesos-slave: >> https://gist.github.com/chrissnell/471106f293d939d4d7d5 >> >> I'm out of ideas here. Can you help? :) >> >> Thanks, >> >> Chris >> > > -- Sent from Gmail Mobile
