From 35d1787b8081272356742af4db7588d0c9d9a813 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 6 Jun 2023 15:19:32 +0200 Subject: [PATCH] inspect: display proxy config Signed-off-by: CrazyMax --- commands/inspect.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commands/inspect.go b/commands/inspect.go index 1e1f313a..f3de3bb3 100644 --- a/commands/inspect.go +++ b/commands/inspect.go @@ -94,6 +94,13 @@ func runInspect(dockerCli command.Cli, in inspectOptions) error { fmt.Fprintf(w, "Buildkit:\t%s\n", nodes[i].Version) } fmt.Fprintf(w, "Platforms:\t%s\n", strings.Join(platformutil.FormatInGroups(n.Node.Platforms, n.Platforms), ", ")) + if len(nodes[i].ProxyConfig) > 0 { + fmt.Fprintf(w, "Proxy config:\n") + for _, k := range sortedKeys(nodes[i].ProxyConfig) { + v := nodes[i].ProxyConfig[k] + fmt.Fprintf(w, "\t%s:\t%s\n", k, v) + } + } if debug.IsEnabled() { fmt.Fprintf(w, "Features:\n") features := nodes[i].Driver.Features(ctx)