I would like to maintain container names when recreating a docker container with Marathon.
Example: I have 2 Mesos slaves (A, B) with 6 instances of an app (3 docker containers on each slave):
On host A:
APP-1, APP-2, APP-3
On host B:
APP-4, APP-5, APP-6
I would like that:
If docker container "APP-2" fails, host A or B to spawn another docker container named: "APP-2" not "APP-a-different-uuid".
I've tried with constraints but no luck.
How can I enforce this ? Is there a way to enforce mesos/marathon to only allocate 6 instances and preserve the names no matter on which slaves they will be spawned ?