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

Function get_docker_command

ci/util/docker_command.py:59–68  ·  view source on GitHub ↗

Get the docker command to use (as a string). Returns: The path to the docker executable, or "docker" if not found (will fail later with clear error)

()

Source from the content-addressed store, hash-verified

57
58
59def get_docker_command() -> str:
60 """Get the docker command to use (as a string).
61
62 Returns:
63 The path to the docker executable, or "docker" if not found (will fail later with clear error)
64 """
65 docker_exe = find_docker_executable()
66 if sys.platform == "win32":
67 return "docker"
68 return docker_exe or "docker"
69
70
71def is_docker_available() -> bool:

Callers 7

_check_dockerMethod · 0.90
docker_container_existsFunction · 0.90
docker_stop_containerFunction · 0.90
docker_remove_containerFunction · 0.90
_run_docker_commandMethod · 0.90
is_docker_availableFunction · 0.85

Calls 1

find_docker_executableFunction · 0.85

Tested by 1

_check_dockerMethod · 0.72