From 490fc08b356b1dcd0bfa4da15ef06d2d4c31fd97 Mon Sep 17 00:00:00 2001 From: PM Extra Date: Fri, 23 Aug 2024 17:52:55 +0800 Subject: [PATCH] Set ProxyFromEnvironment for tlsConfig Signed-off-by: PENG MIN 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 1e9d8ce623..64ccf6ae55 100644 --- a/docker/daemon/client.go +++ b/docker/daemon/client.go @@ -80,6 +80,7 @@ func tlsConfig(sys *types.SystemContext) (*http.Client, error) { return &http.Client{ Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, TLSClientConfig: tlsc, }, CheckRedirect: dockerclient.CheckRedirect,