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

Function is_docker_available

ci/util/docker_command.py:71–88  ·  view source on GitHub ↗

Check if Docker is available on the system. Returns: True if Docker is available and responsive, False otherwise

()

Source from the content-addressed store, hash-verified

69
70
71def is_docker_available() -> bool:
72 """Check if Docker is available on the system.
73
74 Returns:
75 True if Docker is available and responsive, False otherwise
76 """
77 docker_cmd = get_docker_command()
78
79 try:
80 result = RunningProcess.run(
81 [docker_cmd, "--version"],
82 cwd=None,
83 check=False,
84 timeout=5,
85 )
86 return result.returncode == 0
87 except (FileNotFoundError, RuntimeError):
88 return False

Callers 5

attempt_start_dockerFunction · 0.90
_start_docker_windowsFunction · 0.90
_start_docker_macosFunction · 0.90
_start_docker_linuxFunction · 0.90

Calls 2

get_docker_commandFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected