You'll need to put a .dockercfg file somewhere the slave can access. Storing it in a central place and passing it in as a task URI is a good approach.
Docker looks for .dockercfg inside of $HOME. I don't recall whether $HOME is automatically set to the workspace -- if not, you'll need to set that on your task as well. Some more info here: http://mesos.apache.org/documentation/latest/docker-containerizer/ On Fri, Sep 5, 2014 at 10:07 AM, Andy Grove <[email protected]> wrote: > I now have mesos launching docker containers as tasks, which is great. > > I am using this code: > > final ContainerInfo.DockerInfo.Builder dockerInfo = > ContainerInfo.DockerInfo.newBuilder() > .setImage("registry.hub.docker.com/dockerfile/ubuntu"); > > Is there a way I can provide docker hub credentials so I can launch a > container from a private docker hub repo? > > Thanks, > > Andy. > > -- > Andy Grove > VP Engineering > CodeFutures Corporation > > >

