From 0d88411f1bf28e9233ceec18770214ee056da887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Fri, 12 Dec 2025 11:22:47 +0100 Subject: [PATCH] image/tree: Remove --all flag check for untagged images in non-expanded view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts part of the logic introduced in 207bf52c27 which incorrectly gated untagged images behind the --all flag in non-expanded view. The original fix was addressing the wrong layer of the problem. The actual issue was that dangling images were being incorrectly passed to the tree code in the first place. This was properly fixed in 67f5e3413 which corrected the dangling image detection logic to properly filter them out before reaching the tree display code. Now that dangling images are correctly filtered upstream, untagged images that reach the tree view should be displayed regardless of the --all flag setting. Signed-off-by: Paweł Gronowski --- cli/command/image/tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,