Merge pull request #6596 from vvoland/img-list-all-dangling

image/tree: Fix dangling filter condition
This commit is contained in:
Sebastiaan van Stijn
2025-10-31 17:42:33 +01:00
committed by GitHub

View File

@ -116,7 +116,7 @@ func runImages(ctx context.Context, dockerCLI command.Cli, options imagesOptions
}
images := res.Items
if !options.all {
if _, ok := filters["dangling"]; ok {
if _, ok := filters["dangling"]; !ok {
images = slices.DeleteFunc(images, isDangling)
}
}