Skip to content

Commit

Permalink
increase dind timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Ciangottini <dciangot@host-10-25-127-213.wired.local>
  • Loading branch information
Diego Ciangottini committed Jul 17, 2024
1 parent 332e2eb commit a03c3c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/docker/Create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit a03c3c1

Please sign in to comment.