Skip to content

Commit

Permalink
Merge pull request #1872 from ijc/reduce-connection-timeout
Browse files Browse the repository at this point in the history
add a 10s timeout to the client object.
  • Loading branch information
thaJeztah authored May 14, 2019
2 parents 1454f56 + 59defcb commit 5f17b1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/context/docker/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5f17b1d

Please sign in to comment.