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

Method _check_docker

ci/docker_utils/qemu_test_integration.py:28–36  ·  view source on GitHub ↗

Check if Docker is available.

(self)

Source from the content-addressed store, hash-verified

26 self.docker_available = self._check_docker()
27
28 def _check_docker(self) -> bool:
29 """Check if Docker is available."""
30 try:
31 result = subprocess.run(
32 [get_docker_command(), "version"], capture_output=True, timeout=5
33 )
34 return result.returncode == 0
35 except (subprocess.SubprocessError, FileNotFoundError):
36 return False
37
38 def select_runner(self) -> str:
39 """Select the best available runner.

Callers 1

__init__Method · 0.95

Calls 2

get_docker_commandFunction · 0.90
runMethod · 0.45

Tested by

no test coverage detected