Currently Mesos still only support registry 1.0, it should be better if it support registry 2.0.
On Fri, Jul 10, 2015 at 7:31 PM, haosdent <[email protected]> wrote: > Looks need do some improvements in Mesos for support docker 1.6. Could you > fill a issue in https://issues.apache.org/jira/browse/MESOS ? Thank you > very much for your sharing. > > On Fri, Jul 10, 2015 at 6:17 PM, Pradeep Chhetri < > [email protected]> wrote: > >> 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 >> >> > > > -- > Best Regards, > Haosdent Huang > -- Best Regards, Haosdent Huang

