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

Function killContainer

script/computerd-fuse-flush.mjs:111–121  ·  view source on GitHub ↗
(cid)

Source from the content-addressed store, hash-verified

109}
110
111async function killContainer(cid) {
112 if (KEEP) {
113 console.error(`KEEP=1 set; leaving container ${cid} running`);
114 return;
115 }
116 try {
117 await execFileP("docker", ["kill", cid]);
118 } catch {
119 /* already dead */
120 }
121}
122
123async function main() {
124 process.stderr.write("booting computerd container ...\n");

Callers 1

mainFunction · 0.85

Calls 1

errorMethod · 0.65

Tested by

no test coverage detected