feat: implement docker-local cleanup hook

This commit is contained in:
Jose Diaz-Gonzalez
2018-04-02 23:28:29 -04:00
parent c621b3ed69
commit 85b00385a4
2 changed files with 30 additions and 0 deletions

View File

@@ -605,6 +605,9 @@ docker_cleanup() {
fi
dokku_log_info1 "Cleaning up..."
local DOKKU_SCHEDULER="docker-local"
[[ -n "$APP" ]] && DOKKU_SCHEDULER=$(config_get "$APP" DOKKU_SCHEDULER || echo "docker-local")
plugn trigger scheduler-docker-cleanup "$DOKKU_SCHEDULER" "$APP" "$FORCE_CLEANUP"
# delete all non-running containers
# shellcheck disable=SC2046