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

Merge pull request #6657 from vvoland/img-list-nonexpanded-untagged

image/tree: Fix untagged images in non-expanded view
This commit is contained in:
Sebastiaan van Stijn
2025-11-13 13:20:46 +01:00
committed by GitHub

View File

@@ -111,6 +111,13 @@ func runTree(ctx context.Context, dockerCLI command.Cli, opts treeOptions) (int,
continue
}
if len(sortedTags) == 0 {
view.images = append(view.images, topImage{
Details: topDetails,
Children: children,
created: img.Created,
})
}
for _, tag := range sortedTags {
view.images = append(view.images, topImage{
Names: []string{tag},