Merge pull request #1279 from jedevc/inspect-buildkit-version

inspect: add buildkit version information to command output
This commit is contained in:
Tõnis Tiigi
2022-08-18 09:44:29 -07:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@ -115,6 +115,9 @@ func runInspect(dockerCli command.Cli, in inspectOptions) error {
if len(n.Flags) > 0 {
fmt.Fprintf(w, "Flags:\t%s\n", strings.Join(n.Flags, " "))
}
if ngi.drivers[i].version != "" {
fmt.Fprintf(w, "Buildkit:\t%s\n", ngi.drivers[i].version)
}
fmt.Fprintf(w, "Platforms:\t%s\n", strings.Join(platformutil.FormatInGroups(n.Platforms, ngi.drivers[i].platforms), ", "))
}
}