mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-15 07:48:14 +01:00
reworked the image listing when removing backups to properly list all dockcheck/*** backups
This commit is contained in:
parent
6576a36fda
commit
c1124676d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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%%_*}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue