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

Function runDockerCommand

src/node/runtime/DockerRuntime.ts:137–143  ·  view source on GitHub ↗

* Run a Docker CLI command and return result. * Unlike execAsync, this always resolves (never rejects) and returns exit code.

(
  command: string,
  timeoutMs = 30000,
  abortSignal?: AbortSignal
)

Source from the content-addressed store, hash-verified

135 * Unlike execAsync, this always resolves (never rejects) and returns exit code.
136 */
137function runDockerCommand(
138 command: string,
139 timeoutMs = 30000,
140 abortSignal?: AbortSignal
141): Promise<DockerCommandResult> {
142 return runCommand(command, [], { timeoutMs, shell: true, abortSignal });
143}
144
145/** Run a command with array args to avoid shell interpolation for host/container paths. */
146function runSpawnCommand(

Callers 14

streamDockerRunFunction · 0.85
abortHandlerFunction · 0.85
createWorkspaceMethod · 0.85
postCreateSetupMethod · 0.85
detectContainerUserMethod · 0.85
provisionContainerMethod · 0.85
deleteWorkspaceMethod · 0.85
stopIfWeStartedItMethod · 0.85

Calls 1

runCommandFunction · 0.70

Tested by

no test coverage detected