Skip to content

ExecOpts

Defined in: packages/runtime/src/container/types.ts:296

Options for Container.exec. Callers provide their own streams for capture.

Unlike PID 1, exec’d processes get the caller’s streams (not the container’s cons). Output is also teed into the container log buffer.

readonly optional cwd?: string

Defined in: packages/runtime/src/container/types.ts:306

Working directory override; defaults to spec.process.cwd or /.


readonly optional env?: Readonly<Record<string, string>>

Defined in: packages/runtime/src/container/types.ts:304

Env overrides layered over the container’s merged env at exec time.


readonly optional stderr?: Writable

Defined in: packages/runtime/src/container/types.ts:302

Stderr target; defaults to a null sink. Also teed to container log buffer.


readonly optional stdin?: Readable

Defined in: packages/runtime/src/container/types.ts:298

Stdin for the exec’d process; defaults to a closed null stream.


readonly optional stdout?: Writable

Defined in: packages/runtime/src/container/types.ts:300

Stdout target; defaults to a null sink. Also teed to container log buffer.


readonly optional tty?: boolean

Defined in: packages/runtime/src/container/types.ts:308

Allocate a TTY for this exec session (toggles /dev/cons raw mode around the call).