MCPcopy Create free account
hub / github.com/FastLED/FastLED / _check_docker_available

Function _check_docker_available

ci/runners/docker_runner.py:89–103  ·  view source on GitHub ↗

Check if Docker is available and running.

()

Source from the content-addressed store, hash-verified

87
88
89def _check_docker_available() -> bool:
90 """Check if Docker is available and running."""
91 try:
92 # Use 30s timeout - Docker Desktop on Windows can be slow to respond
93 result = subprocess.run(
94 ["docker", "info"],
95 capture_output=True,
96 timeout=30,
97 )
98 return result.returncode == 0
99 except (subprocess.TimeoutExpired, FileNotFoundError):
100 return False
101 except KeyboardInterrupt as ki:
102 handle_keyboard_interrupt(ki)
103 raise
104
105
106def _build_docker_image(project_root: Path, rebuild: bool = False) -> bool:

Callers 1

run_docker_testsFunction · 0.85

Calls 2

runMethod · 0.45

Tested by

no test coverage detected