mirror of https://github.com/docker/buildx.git
inspect: add buildkit version information to command output
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
parent
441853f189
commit
8f0d9bd71f
|
@ -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), ", "))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue