From 0f74808876b7c270c1acb46b9f42ae00230ed2fd Mon Sep 17 00:00:00 2001 From: Jon Ayers Date: Mon, 18 Mar 2024 17:23:13 -0500 Subject: [PATCH] fix: increase timeout for dockerd startup (#69) --- dockerutil/daemon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerutil/daemon.go b/dockerutil/daemon.go index 0cc12c3..476a866 100644 --- a/dockerutil/daemon.go +++ b/dockerutil/daemon.go @@ -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)