fix: Use correct container id variable for killing containers
The first pass at stop/kill would fail as the variable was incorrect.
This commit is contained in:
@@ -103,8 +103,8 @@ fn-scheduler-docker-local-retire-container() {
|
|||||||
# to not send SIGKILL as the docs would indicate. If that fails, move
|
# to not send SIGKILL as the docs would indicate. If that fails, move
|
||||||
# on to the next.
|
# on to the next.
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
docker stop $DOCKER_STOP_TIME_ARG "$oldid" \
|
docker stop $DOCKER_STOP_TIME_ARG "$CID" \
|
||||||
|| docker kill "$oldid" \
|
|| docker kill "$CID" \
|
||||||
|| dokku_log_warn "Unable to kill container ${CID}"
|
|| dokku_log_warn "Unable to kill container ${CID}"
|
||||||
|
|
||||||
if ! docker kill "$CID"; then
|
if ! docker kill "$CID"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user