From 8f0d9bd71f8dac9f0c1f215259fa969400205ab8 Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Thu, 18 Aug 2022 11:03:03 +0100 Subject: [PATCH] inspect: add buildkit version information to command output Signed-off-by: Justin Chadwell --- commands/inspect.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/inspect.go b/commands/inspect.go index c6787626..31da0a36 100644 --- a/commands/inspect.go +++ b/commands/inspect.go @@ -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), ", ")) } }