From 44ba460bf0842b9a38c354486c48004a88aac4e2 Mon Sep 17 00:00:00 2001 From: PM Extra Date: Sat, 18 May 2024 01:49:09 +0800 Subject: [PATCH] Support proxy environment for docker client Signed-off-by: PM Extra --- docker/daemon/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/daemon/client.go b/docker/daemon/client.go index 354af2140f..09d9609117 100644 --- a/docker/daemon/client.go +++ b/docker/daemon/client.go @@ -88,6 +88,7 @@ func tlsConfig(sys *types.SystemContext) (*http.Client, error) { func httpConfig() *http.Client { return &http.Client{ + Proxy: http.ProxyFromEnvironment, Transport: &http.Transport{ TLSClientConfig: nil, },