Skip to content

Commit 67cef77

Browse files
authored
Merge pull request #6658 from vvoland/img-list-all-dangling
image/tree: Only show untagged images when --all flag is used
2 parents 2cfd9df + 207bf52 commit 67cef77

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)