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

Reply via email to