And if your slave id change after restart, the slave would be treated as a new slave and could not recover successfully. It would recover the docker containers which start with "mesos-${slave_id}".
On Thu, Oct 22, 2015 at 7:08 PM, haosdent <haosd...@gmail.com> wrote: > As far as I know, when mesos-slave run in docker, the recover process is > same as the slave run outside. But you need make sure you add "-v > /var/run/docker.sock:/var/run/docker.sock" when you launch mesos-slave. > > On Thu, Oct 22, 2015 at 6:59 PM, Grzegorz Graczyk <gregor...@gmail.com> > wrote: > >> Docker is running when slave exits - and so are docker containers started >> by mesos slave. The problem starts when slave is online again and cannot >> see already started containers and recover them... >> Isn't this supposed to fix that problem? >> https://issues.apache.org/jira/browse/MESOS-2115 >> >> On 22 October 2015 at 12:54, Klaus Ma <klaus1982...@gmail.com> wrote: >> >>> It seems we can NOT keep docker running but slave exit. >>> >>> On Thu, Oct 22, 2015 at 6:18 AM, Grzegorz Graczyk <gregor...@gmail.com> >>> wrote: >>> >>>> Hi everyone, >>>> I was wondering if it's possible to recover running docker containers >>>> after restart of mesos-slave? >>>> If it is possible - what are the requirements to do so? >>>> >>>> Regards, >>>> Grzegorz Graczyk >>>> >>> >>> >>> >>> -- >>> Da (Klaus), Ma (马达) | PMP® | Advisory Software Engineer >>> Platform Symphony/DCOS Development & Support, STG, IBM GCG >>> +86-10-8245 4084 | mad...@cn.ibm.com | http://www.cguru.net >>> >> >> > > > -- > Best Regards, > Haosdent Huang > -- Best Regards, Haosdent Huang