MCPcopy Create free account
hub / github.com/Coooolfan/onlyboxes / has_docker

Function has_docker

scripts/install.py:247–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245
246
247def has_docker() -> bool:
248 if shutil.which("docker") is None:
249 return False
250 result = run_cmd(["docker", "info"], check=False)
251 return result.returncode == 0
252
253
254def has_docker_compose() -> bool:

Callers 1

detect_environmentFunction · 0.85

Calls 1

run_cmdFunction · 0.85

Tested by

no test coverage detected