()
| 10 | var flight singleflight.Group |
| 11 | |
| 12 | func Installed() error { |
| 13 | if _, err := exec.LookPath("docker"); err != nil { |
| 14 | return fmt.Errorf("docker not found: %w", err) |
| 15 | } |
| 16 | // Verify the Docker daemon is actually running and accessible. |
| 17 | // Without this check, tests will try Docker, fail on docker pull, |
| 18 | // and t.Fatal instead of falling back to native database support. |
| 19 | if out, err := exec.Command("docker", "info").CombinedOutput(); err != nil { |
| 20 | return fmt.Errorf("docker daemon not available: %w\n%s", err, out) |
| 21 | } |
| 22 | return nil |
| 23 | } |
no outgoing calls