Skip to content

Commit

Permalink
driver: Add proxy support
Browse files Browse the repository at this point in the history
Enable the use of HTTP_PROXY and HTTPS_PROXY variables when downloading
layers
  • Loading branch information
yebinama committed Nov 7, 2017
1 parent e00e57c commit 5c58575
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/imagefmt/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c58575

Please sign in to comment.