Merge pull request #263 from tonistiigi/platforms-print

separate manual and automatically detected platforms
This commit is contained in:
Tibor Vass
2020-04-28 17:46:09 -07:00
committed by GitHub
3 changed files with 23 additions and 3 deletions

View File

@ -118,7 +118,7 @@ func runInspect(dockerCli command.Cli, in inspectOptions) error {
if len(n.Flags) > 0 {
fmt.Fprintf(w, "Flags:\t%s\n", strings.Join(n.Flags, " "))
}
fmt.Fprintf(w, "Platforms:\t%s\n", strings.Join(platformutil.Format(platformutil.Dedupe(append(n.Platforms, ngi.drivers[i].platforms...))), ", "))
fmt.Fprintf(w, "Platforms:\t%s\n", strings.Join(platformutil.FormatInGroups(n.Platforms, ngi.drivers[i].platforms), ", "))
}
}
}