MCPcopy Create free account
hub / github.com/cloudflare/computer / dockerAvailable

Function dockerAvailable

packages/computerd/src/exec/runner.fuse.test.ts:46–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44const RUN_COMPUTERD_SCRIPT = join(REPO_ROOT, "packages/computer/test-harness/run-computerd.sh");
45
46function dockerAvailable(): boolean {
47 try {
48 execFileSync("docker", ["info"], { stdio: "ignore" });
49 return true;
50 } catch {
51 return false;
52 }
53}
54
55function binaryAvailable(): boolean {
56 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected