From a03c3c1dbceaa157945fe00bdaf758e5d38f79df Mon Sep 17 00:00:00 2001 From: Diego Ciangottini Date: Wed, 17 Jul 2024 21:20:28 +0200 Subject: [PATCH] increase dind timeout Signed-off-by: Diego Ciangottini --- pkg/docker/Create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/docker/Create.go b/pkg/docker/Create.go index 9552aa0..b24f66f 100644 --- a/pkg/docker/Create.go +++ b/pkg/docker/Create.go @@ -317,7 +317,7 @@ func (h *SidecarHandler) CreateHandler(w http.ResponseWriter, r *http.Request) { log.G(h.Ctx).Info("\u2705 [POD FLOW] DIND container created successfully with ID: " + dindContainerID) // create a variable of maximum number of retries - maxRetries := 10 + maxRetries := 20 // wait until the dind container is up and running by check that the command docker ps inside of it does not return an error for { @@ -337,7 +337,7 @@ func (h *SidecarHandler) CreateHandler(w http.ResponseWriter, r *http.Request) { if strings.Contains(string(output), "API listen on /var/run/docker.sock") { break } else { - time.Sleep(1 * time.Second) + time.Sleep(60 * time.Second) } maxRetries -= 1