Skip to content

Commit 88e3241

Browse files
authored
Merge pull request #6657 from vvoland/img-list-nonexpanded-untagged
image/tree: Fix untagged images in non-expanded view
2 parents 2ae51e2 + b66b931 commit 88e3241

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cli/command/image/tree.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ func runTree(ctx context.Context, dockerCLI command.Cli, opts treeOptions) (int,
111111
continue
112112
}
113113

114+
if len(sortedTags) == 0 {
115+
view.images = append(view.images, topImage{
116+
Details: topDetails,
117+
Children: children,
118+
created: img.Created,
119+
})
120+
}
114121
for _, tag := range sortedTags {
115122
view.images = append(view.images, topImage{
116123
Names: []string{tag},

0 commit comments

Comments
 (0)