From 5c5857548d43fa866d46a4c98309b2dfa88be418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Unbekandt?= Date: Tue, 7 Nov 2017 12:17:13 +0100 Subject: [PATCH] driver: Add proxy support Enable the use of HTTP_PROXY and HTTPS_PROXY variables when downloading layers --- ext/imagefmt/driver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/imagefmt/driver.go b/ext/imagefmt/driver.go index 178de53b..46724401 100644 --- a/ext/imagefmt/driver.go +++ b/ext/imagefmt/driver.go @@ -122,6 +122,7 @@ func Extract(format, path string, headers map[string]string, toExtract []string) // Send the request and handle the response. tr := &http.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: insecureTLS}, + Proxy: http.ProxyFromEnvironment, } client := &http.Client{Transport: tr} r, err := client.Do(request)