Skip to content

Commit

Permalink
fix: increase timeout for dockerd startup (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreya authored Mar 18, 2024
1 parent 27d8e2d commit 0f74808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerutil/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
)

// WaitForDaemon waits for a Docker daemon to startup. It waits a max
// of 30s before giving up.
// of 5m before giving up.
func WaitForDaemon(ctx context.Context, client DockerClient) error {
ticker := time.NewTicker(time.Millisecond * 250)
defer ticker.Stop()

ctx, cancel := context.WithTimeout(ctx, time.Second*30)
ctx, cancel := context.WithTimeout(ctx, time.Minute*5)
defer cancel()

pingCtx, cancel := context.WithTimeout(ctx, time.Second)
Expand Down

0 comments on commit 0f74808

Please sign in to comment.