Skip to content

Commit 207bf52

Browse files
committed
image/tree: Only show untagged images when --all flag is used
In non-expanded view, untagged images should only be displayed when the --all flag is explicitly provided by the user. Previously, untagged images were accidentally always shown in the non-expanded view regardless of the --all flag setting. Signed-off-by: Paweł Gronowski <[email protected]>
1 parent 2cfd9df commit 207bf52

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
@@ -111,7 +111,7 @@ func runTree(ctx context.Context, dockerCLI command.Cli, opts treeOptions) (int,
111111
continue
112112
}
113113

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

0 commit comments

Comments
 (0)