Merge pull request #1872 from ijc/reduce-connection-timeout

add a 10s timeout to the client object.
This commit is contained in:
Sebastiaan van Stijn 2019-05-13 17:00:06 -07:00 committed by GitHub
commit 5f17b1d622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,6 +122,7 @@ func (c *Endpoint) ClientOpts() ([]client.Opt, error) {
client.WithDialContext(helper.Dialer),
)
}
result = append(result, client.WithTimeout(10*time.Second))
}
version := os.Getenv("DOCKER_API_VERSION")