Hi Grzegorz,

Yes it's possible, but do require some configuration for the slave recover the 
running containers. This is needed to run Mesos on CoreOS as well, so it's made 
possible I believe around 0.24.1 or later.

Basically to have the slave to recover the task containers, the executors that 
watches the tasks need to be launched in containers as well. This is made 
possible with the docker_mesos_image slave flag, where the docker containerizer 
will use this image to launch executors. This should be the same image used to 
launch the slave itself.

Also when launching the slave in a docker container it must have the following 
docker flags:

--pid=host (so all processes can be visible to the slave)
-v /var/run/docker.sock:/var/run/docker.sock (slave can then launch containers 
as peers)
-v /tmp/mesos:/tmp/mesos (we need slave work directory information to persist 
when slave recovers. You can also create a separate dir on the host if you want 
to run multiple slaves)

Tim

> On Oct 22, 2015, at 6:59 PM, Grzegorz Graczyk <[email protected]> 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 <[email protected]> wrote:
>> It seems we can NOT keep docker running but slave exit. 
>> 
>>> On Thu, Oct 22, 2015 at 6:18 AM, Grzegorz Graczyk <[email protected]> 
>>> 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 | [email protected] | http://www.cguru.net
> 

Reply via email to