inspect: display proxy config

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
pull/1864/head
CrazyMax 2 years ago committed by CrazyMax
parent 696770d29c
commit 35d1787b80
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

@ -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, "Buildkit:\t%s\n", nodes[i].Version)
} }
fmt.Fprintf(w, "Platforms:\t%s\n", strings.Join(platformutil.FormatInGroups(n.Node.Platforms, n.Platforms), ", ")) 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() { if debug.IsEnabled() {
fmt.Fprintf(w, "Features:\n") fmt.Fprintf(w, "Features:\n")
features := nodes[i].Driver.Features(ctx) features := nodes[i].Driver.Features(ctx)

Loading…
Cancel
Save