diff --git a/cli/command/image/tree.go b/cli/command/image/tree.go index ea8dc1a6cd..48b7d409ff 100644 --- a/cli/command/image/tree.go +++ b/cli/command/image/tree.go @@ -113,7 +113,7 @@ func runTree(ctx context.Context, dockerCLI command.Cli, opts treeOptions) (int, continue } - if opts.all && len(sortedTags) == 0 { + if len(sortedTags) == 0 { view.images = append(view.images, topImage{ Details: topDetails, Children: children,