Fix: use image created time when last tag time is not present

Signed-off-by: Kian Eliasi <kian.elbo@gmail.com>
This commit is contained in:
Kian Eliasi
2025-08-25 21:50:23 +03:30
committed by Nicolas De loof
parent 73e593e69a
commit 6078b4d99d
4 changed files with 22 additions and 5 deletions

View File

@@ -103,7 +103,7 @@ func runImages(ctx context.Context, dockerCli command.Cli, backend api.Service,
for ctr, i := range images {
lastTagTime := i.LastTagTime
if lastTagTime.IsZero() {
lastTagTime = time.Now()
lastTagTime = i.Created
}
imageList = append(imageList, img{
ContainerName: ctr,