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 <pawel.gronowski@docker.com>
This commit is contained in:
@ -111,7 +111,7 @@ func runTree(ctx context.Context, dockerCLI command.Cli, opts treeOptions) (int,
|
||||
continue
|
||||
}
|
||||
|
||||
if len(sortedTags) == 0 {
|
||||
if opts.all && len(sortedTags) == 0 {
|
||||
view.images = append(view.images, topImage{
|
||||
Details: topDetails,
|
||||
Children: children,
|
||||
|
||||
Reference in New Issue
Block a user