MCPcopy Create free account
hub / github.com/conda/constructor / has_docker_buildx

Function has_docker_buildx

constructor/utils.py:463–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

461
462
463def has_docker_buildx() -> bool:
464 try:
465 subprocess.run(
466 ["docker", "buildx", "version"],
467 stdout=subprocess.DEVNULL,
468 stderr=subprocess.DEVNULL,
469 check=True,
470 )
471 return True
472 except (subprocess.CalledProcessError, OSError):
473 return False

Callers 1

main_buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected