diff --git a/pkg/workflow/validation_test.go b/pkg/workflow/validation_test.go index 81ffb2e4b9..550335cde8 100644 --- a/pkg/workflow/validation_test.go +++ b/pkg/workflow/validation_test.go @@ -63,11 +63,15 @@ func TestValidateContainerImages(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - // Skip test if docker is not available + // Skip test if docker daemon is not running if tt.skipIfNoDocker { if _, err := exec.LookPath("docker"); err != nil { t.Skip("docker not available, skipping test") } + // Also check if Docker daemon is running (not just if binary exists) + if !isDockerDaemonRunning() { + t.Skip("docker daemon not running, skipping test") + } } compiler := NewCompiler() @@ -88,6 +92,10 @@ func TestValidateDockerImage(t *testing.T) { if _, err := exec.LookPath("docker"); err != nil { t.Skip("docker not available, skipping test") } + // Also check if Docker daemon is running (not just if binary exists) + if !isDockerDaemonRunning() { + t.Skip("docker daemon not running, skipping test") + } tests := []struct { name string