From 933cd229119925d8196149cbe6f775434b6e2cfa Mon Sep 17 00:00:00 2001 From: Pranay Kanwar Date: Sun, 22 Jul 2018 12:11:14 +0530 Subject: [PATCH] [MESOS-7386] Do a stop if container is not killed --- src/slave/containerizer/docker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slave/containerizer/docker.cpp b/src/slave/containerizer/docker.cpp index 277a1550e19..6f3bedcaf37 100644 --- a/src/slave/containerizer/docker.cpp +++ b/src/slave/containerizer/docker.cpp @@ -2395,7 +2395,7 @@ void DockerContainerizerProcess::_destroy( // for a task). LOG(INFO) << "Running docker stop on container " << containerId; - if (killed) { + if (!killed) { // TODO(alexr): After the deprecation cycle (started in 1.0), update // this to omit the timeout. Graceful shutdown of the container is not // a containerizer responsibility; it is the responsibility of the agent