From ba157867c135cc4b122a3527fcbe838187ad23ce Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 17 Dec 2018 17:20:34 -0500 Subject: [PATCH] fix: Use correct container id variable for killing containers The first pass at stop/kill would fail as the variable was incorrect. --- plugins/scheduler-docker-local/internal-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/scheduler-docker-local/internal-functions b/plugins/scheduler-docker-local/internal-functions index e7ab72c26..37d3cd099 100755 --- a/plugins/scheduler-docker-local/internal-functions +++ b/plugins/scheduler-docker-local/internal-functions @@ -103,8 +103,8 @@ fn-scheduler-docker-local-retire-container() { # to not send SIGKILL as the docs would indicate. If that fails, move # on to the next. # shellcheck disable=SC2086 - docker stop $DOCKER_STOP_TIME_ARG "$oldid" \ - || docker kill "$oldid" \ + docker stop $DOCKER_STOP_TIME_ARG "$CID" \ + || docker kill "$CID" \ || dokku_log_warn "Unable to kill container ${CID}" if ! docker kill "$CID"; then