Docker-DCO-1.1-Signed-off-by: Ryan Thomas <rthomas@atlassian.com> (github: rthomas)
This commit is contained in:
parent
9bad706a1f
commit
fffa920a89
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue