ExecOpts
Defined in: packages/runtime/src/container/types.ts:296
Options for Container.exec. Callers provide their own streams for capture.
Remarks
Section titled “Remarks”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.
Properties
Section titled “Properties”
readonlyoptionalcwd?:string
Defined in: packages/runtime/src/container/types.ts:306
Working directory override; defaults to spec.process.cwd or /.
readonlyoptionalenv?: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.
stderr?
Section titled “stderr?”
readonlyoptionalstderr?:Writable
Defined in: packages/runtime/src/container/types.ts:302
Stderr target; defaults to a null sink. Also teed to container log buffer.
stdin?
Section titled “stdin?”
readonlyoptionalstdin?:Readable
Defined in: packages/runtime/src/container/types.ts:298
Stdin for the exec’d process; defaults to a closed null stream.
stdout?
Section titled “stdout?”
readonlyoptionalstdout?:Writable
Defined in: packages/runtime/src/container/types.ts:300
Stdout target; defaults to a null sink. Also teed to container log buffer.
readonlyoptionaltty?: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).