MCPcopy Index your code
hub / github.com/coder/mux / removeDevcontainerContainer

Function removeDevcontainerContainer

src/node/runtime/devcontainerCli.ts:158–173  ·  view source on GitHub ↗
(containerId: string)

Source from the content-addressed store, hash-verified

156const DEFAULT_CLEANUP_TIMEOUT_MS = 60_000; // 1 minute
157
158async function removeDevcontainerContainer(containerId: string): Promise<void> {
159 await new Promise<void>((resolve) => {
160 const proc = spawn("docker", ["rm", "-f", containerId], {
161 stdio: ["ignore", "pipe", "pipe"],
162 timeout: DEFAULT_CLEANUP_TIMEOUT_MS,
163 });
164
165 proc.on("error", () => {
166 resolve();
167 });
168
169 proc.on("close", () => {
170 resolve();
171 });
172 });
173}
174const VERSION_CHECK_TIMEOUT_MS = 10_000; // 10 seconds
175
176/**

Callers 1

finalizeErrorFunction · 0.85

Calls 2

onMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected