I have a use case where I need to cleanly shut down a mesos-slave and stop all the frameworks that are executing on the node. Using Marathon and Spark and docker as a containerizer, so there are several other docker containers running for the framework tasks on the node, and I would like to stop these when (cleanly) stopping the slave.
Surprisingly, I can't find any documentation covering this. Is there a way to do it?