From 22949cab4cb0251831ee6111d7861b85adea8db8 Mon Sep 17 00:00:00 2001 From: Alexey Igrychev Date: Tue, 23 Nov 2021 19:24:23 +0000 Subject: [PATCH] fix(host_cleanup): getting true dangling images --- pkg/host_cleaning/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/host_cleaning/images.go b/pkg/host_cleaning/images.go index eb23c42fec..a7ecb63d16 100644 --- a/pkg/host_cleaning/images.go +++ b/pkg/host_cleaning/images.go @@ -44,7 +44,7 @@ func trueDanglingImages(ctx context.Context) ([]types.ImageSummary, error) { var trueDanglingImageList []types.ImageSummary for _, image := range danglingImageList { if len(image.RepoTags) == 0 && len(image.RepoDigests) == 0 { - trueDanglingImageList = append(trueDanglingImageList) + trueDanglingImageList = append(trueDanglingImageList, image) } }