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

Method check_docker_available

ci/docker_utils/avr8js_docker.py:49–57  ·  view source on GitHub ↗

Check if Docker is available and running

(self)

Source from the content-addressed store, hash-verified

47 return str(path)
48
49 def check_docker_available(self) -> bool:
50 """Check if Docker is available and running"""
51 try:
52 result = RunningProcess.run(
53 ["docker", "version"], cwd=None, check=False, timeout=5
54 )
55 return result.returncode == 0
56 except (RuntimeError, FileNotFoundError):
57 return False
58
59 def check_image_exists(self, image_name: str) -> bool:
60 """Check if Docker image exists locally"""

Callers 2

mainFunction · 0.95
run_avr8js_testsFunction · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected