From 5b91b1a6c9499af2f1dddae0f5b2ee6604288872 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 24 Jul 2019 11:56:31 +1200 Subject: [PATCH] feat(api): bump default Docker library timeout to 60s (#3038) --- api/docker/client.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/docker/client.go b/api/docker/client.go index 9dcdf33dc..af68781b2 100644 --- a/api/docker/client.go +++ b/api/docker/client.go @@ -11,7 +11,8 @@ import ( ) const ( - unsupportedEnvironmentType = portainer.Error("Environment not supported") + unsupportedEnvironmentType = portainer.Error("Environment not supported") + defaultDockerRequestTimeout = 60 ) // ClientFactory is used to create Docker clients @@ -103,6 +104,6 @@ func httpClient(endpoint *portainer.Endpoint) (*http.Client, error) { return &http.Client{ Transport: transport, - Timeout: 30 * time.Second, + Timeout: defaultDockerRequestTimeout * time.Second, }, nil }