Skip to content

Commit

Permalink
list/tree: Remove Used column for now
Browse files Browse the repository at this point in the history
It won't be populated correctly without moby PR 47501

Signed-off-by: Paweł Gronowski <[email protected]>
  • Loading branch information
vvoland committed Aug 16, 2024
1 parent 3091470 commit 963307a
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions cli/command/image/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,10 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error {
headerColor := aec.NewBuilder(aec.DefaultF, aec.Bold).ANSI
topNameColor := aec.NewBuilder(aec.BlueF, aec.Underline, aec.Bold).ANSI
normalColor := aec.NewBuilder(aec.DefaultF).ANSI
greenColor := aec.NewBuilder(aec.GreenF).ANSI
if !out.IsTerminal() {
headerColor = noColor{}
topNameColor = noColor{}
normalColor = noColor{}
greenColor = noColor{}
warningColor = noColor{}
}

Expand Down Expand Up @@ -166,18 +164,18 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error {
return d.ContentSize
},
},
{
Title: "Used",
Align: alignCenter,
Width: 4,
Color: &greenColor,
DetailsValue: func(d *imageDetails) string {
if d.Used {
return "✔"
}
return " "
},
},
// TODO: Needs https://github.com/moby/moby/pull/47501
// {
// Title: "Used",
// Align: alignCenter,
// Width: 4,
// Color: &greenColor,
// DetailsValue: func(d *imageDetails) string {
// if d.Used {
// return "✔"
// }
// return " "
// },
}

nameWidth := int(width)
Expand Down

0 comments on commit 963307a

Please sign in to comment.