1
0
mirror of https://github.com/docker/cli.git synced 2026-01-26 15:41:42 +03:00

Merge pull request #6658 from vvoland/img-list-all-dangling

image/tree: Only show untagged images when --all flag is used
This commit is contained in:
Paweł Gronowski
2025-11-13 20:53:26 +01:00
committed by GitHub

View File

@@ -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,