feat: schedule related images for cleanup when retiring containers

If the containers no longer exist and the images are unused, we should remove the images as well.

Note that images may sometimes stick around for a little while, depending on the retire schedule and the wait time specified for the container.

Closes #4104
This commit is contained in:
Jose Diaz-Gonzalez committed 2020-11-26 03:21:45 -05:00
1 parent a662046f95
commit 0786954d34
5 files changed
+116 -48

No files matched your search

@@ -180,7 +180,7 @@ trigger-scheduler-docker-local-scheduler-deploy() {
local oldid
for oldid in $oldids; do
dokku_log_verbose_quiet "$oldid"
fn-scheduler-docker-local-register-retired-container "$APP" "$oldid" "$WAIT"
plugn trigger scheduler-register-retired "$APP" "$oldid" "$WAIT"
done
(
exec >/dev/null 2>/dev/null </dev/null