feat: implement ps:retire

This commit is contained in:
Jose Diaz-Gonzalez
2020-11-21 20:56:59 -05:00
parent 5fd1772c3a
commit 53a76b1353
5 changed files with 35 additions and 5 deletions

View File

@@ -70,6 +70,7 @@ fn-scheduler-docker-local-retire-container() {
declare APP="$1" CID="$2" DEAD_TIME="$3"
local STATE
dokku_log_info1_quiet "Attempting to retire $APP container $CID"
STATE="$("$DOCKER_BIN" container inspect --format "{{ .State.Status }}" "$CID" 2>/dev/null || true)"
if [[ -z "$STATE" ]]; then
return