Skip to content

Commit 0d88411

Browse files
committed
image/tree: Remove --all flag check for untagged images in non-expanded view
This reverts part of the logic introduced in 207bf52 which incorrectly gated untagged images behind the --all flag in non-expanded view. The original fix was addressing the wrong layer of the problem. The actual issue was that dangling images were being incorrectly passed to the tree code in the first place. This was properly fixed in 67f5e34 which corrected the dangling image detection logic to properly filter them out before reaching the tree display code. Now that dangling images are correctly filtered upstream, untagged images that reach the tree view should be displayed regardless of the --all flag setting. Signed-off-by: Paweł Gronowski <[email protected]>
1 parent b315983 commit 0d88411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/command/image/tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func runTree(ctx context.Context, dockerCLI command.Cli, opts treeOptions) (int,
113113
continue
114114
}
115115

116-
if opts.all && len(sortedTags) == 0 {
116+
if len(sortedTags) == 0 {
117117
view.images = append(view.images, topImage{
118118
Details: topDetails,
119119
Children: children,

0 commit comments

Comments
 (0)