Skip to main content

createDockerSandbox

@forge/monorepo


@forge/monorepo / backend/src / createDockerSandbox

Function: createDockerSandbox()

createDockerSandbox(config): Sandbox

Defined in: backend/src/toolkit/sandbox.ts:257

The real adapter: one container per command, destroyed after.

Not a pool. A reused container is a container a previous command could have left something in, and the whole proposition here is that a command cannot affect anything outside itself.

Parameters

config

DockerSandboxConfig

Returns

Sandbox