mesos-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pradeep Chhetri <pradeep.chhetr...@gmail.com>
Subject Docker Registry 2.0 + Mesos + Marathon
Date Fri, 10 Jul 2015 10:17:24 GMT
Hello all,

I just wanted to share this that if you using Docker version >= 1.6 and
running your own private docker registry 2.0 and trying to deploy
containers using mesos and marathon, there might be some issues with docker
registry authentication because from docker version >=1.6, there is no
.dockercfg file anymore, instead there is a .docker/config.json containing
the credentials. So docker pull will fails on mesos-slaves.

In order to solve this, you can create a tar.gz file containing the
directory structure as:

# tar -tvf docker.tar.gz
drwxr-xr-x root/root         0 2015-07-10 09:56 .docker/
-rw------- root/root       136 2015-07-09 13:46 .docker/config.json

And add this tar file to uris. So basically when the mesos-slaves will pull
inside the containers and extract it, it will provide the correct directory
structure as per docker authentication requirements.

I spent around 1 hour debugging it, so thought that it might be useful for
others as well :)

-- 
Pradeep Chhetri

Mime
View raw message