Merge pull request #1872 from ijc/reduce-connection-timeout
add a 10s timeout to the client object.
This commit is contained in:
commit
5f17b1d622
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user