diff --git a/cli/command/image/tree.go b/cli/command/image/tree.go index ff0c54a4cc..2a497e6e77 100644 --- a/cli/command/image/tree.go +++ b/cli/command/image/tree.go @@ -22,6 +22,8 @@ import ( "github.com/opencontainers/go-digest" ) +const untaggedName = "" + type treeOptions struct { images []imagetypes.Summary all bool @@ -433,7 +435,7 @@ func printChildren(out tui.Output, headers []imgColumn, img topImage, normalColo func printNames(out tui.Output, headers []imgColumn, img topImage, color, untaggedColor aec.ANSI) { if len(img.Names) == 0 { - _, _ = fmt.Fprint(out, headers[0].Print(untaggedColor, "")) + _, _ = fmt.Fprint(out, headers[0].Print(untaggedColor, untaggedName)) } for nameIdx, name := range img.Names {