reworked the image listing when removing backups to properly list all dockcheck/*** backups

This commit is contained in:
mag37
2025-11-15 20:53:45 +01:00
parent 6576a36fda
commit c1124676d1

View File

@@ -651,7 +651,7 @@ fi
if [[ -n "${DaysKept:-}" ]]; then if [[ -n "${DaysKept:-}" ]]; then
IFS=$'\n' IFS=$'\n'
CleanupCount=0 CleanupCount=0
for backup_img in $(docker images --format "{{.Repository}} {{.Tag}}" dockcheck/\*); do for backup_img in $(docker images --format "{{.Repository}} {{.Tag}}" | sed -n '/^dockcheck/p'); do
repo_name=${backup_img% *} repo_name=${backup_img% *}
backup_tag=${backup_img#* } backup_tag=${backup_img#* }
backup_date=${backup_tag%%_*} backup_date=${backup_tag%%_*}