Skip to content

Commit

Permalink
Support proxy environment for docker client
Browse files Browse the repository at this point in the history
Signed-off-by: PENG MIN <[email protected]>
  • Loading branch information
PMExtra committed May 17, 2024
1 parent bb09955 commit 73544e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/daemon/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func tlsConfig(sys *types.SystemContext) (*http.Client, error) {
func httpConfig() *http.Client {
return &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: nil,
},
CheckRedirect: dockerclient.CheckRedirect,
Expand Down

0 comments on commit 73544e0

Please sign in to comment.