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
IFS=$'\n'
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% *}
backup_tag=${backup_img#* }
backup_date=${backup_tag%%_*}