Docker-DCO-1.1-Signed-off-by: Ryan Thomas <rthomas@atlassian.com> (github: rthomas)

Upstream-commit: a5ccb5b28d7e24a379f77ab7619f296aa500c8dd
Component: engine
This commit is contained in:
Ryan Thomas
2014-03-25 14:45:11 +11:00
parent 2e34f473ea
commit b645a0b182

View File

@ -41,7 +41,10 @@ func pingRegistryEndpoint(endpoint string) (bool, error) {
conn.SetDeadline(time.Now().Add(time.Duration(10) * time.Second))
return conn, nil
}
httpTransport := &http.Transport{Dial: httpDial}
httpTransport := &http.Transport{
Dial: httpDial,
Proxy: http.ProxyFromEnvironment,
}
client := &http.Client{Transport: httpTransport}
resp, err := client.Get(endpoint + "_ping")
if err != nil {