Skip to content

Commit f8e8713

Browse files
authored
Merge pull request #6596 from vvoland/img-list-all-dangling
image/tree: Fix dangling filter condition
2 parents 173808f + 9e79377 commit f8e8713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/command/image/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func runImages(ctx context.Context, dockerCLI command.Cli, options imagesOptions
116116
}
117117
images := res.Items
118118
if !options.all {
119-
if _, ok := filters["dangling"]; ok {
119+
if _, ok := filters["dangling"]; !ok {
120120
images = slices.DeleteFunc(images, isDangling)
121121
}
122122
}

0 commit comments

Comments
 (0)