ContainerShorthand
Defined in: packages/runtime/src/container/types.ts:643
Flat option bag for the shorthand create(image, opts) / run(image, opts) path.
Remarks
Section titled “Remarks”Mirrors the most common docker run flags; translated into a ContainerSpec
by shorthandToSpec(). Prefer this over hand-building a spec for typical cases.
Properties
Section titled “Properties”allow?
Section titled “allow?”
readonlyoptionalallow?:Partial<NamespacePermissions>
Defined in: packages/runtime/src/container/types.ts:671
Namespace permissions override (e.g. mount policy).
readonlyoptionalargv?: readonlystring[]
Defined in: packages/runtime/src/container/types.ts:649
Argv for PID 1.
audit?
Section titled “audit?”
readonlyoptionalaudit?:boolean
Defined in: packages/runtime/src/container/types.ts:665
Enable kernel open() auditing for this container.
readonlyoptionalbin?:string
Defined in: packages/runtime/src/container/types.ts:647
PID-1 bin; defaults to the image’s conventional init.
readonlyoptionalcwd?:string
Defined in: packages/runtime/src/container/types.ts:653
PID-1 working directory.
readonlyoptionalenv?:Readonly<Record<string,string>>
Defined in: packages/runtime/src/container/types.ts:651
Env overrides layered over image env.
factotumScope?
Section titled “factotumScope?”
readonlyoptionalfactotumScope?: readonlystring[]
Defined in: packages/runtime/src/container/types.ts:673
Factotum credential scope — comma-separated domain patterns the child can auth to.
healthCheck?
Section titled “healthCheck?”
readonlyoptionalhealthCheck?:HealthCheck
Defined in: packages/runtime/src/container/types.ts:675
M5-S4: Health check configuration.
isolateEnv?
Section titled “isolateEnv?”
readonlyoptionalisolateEnv?:boolean
Defined in: packages/runtime/src/container/types.ts:669
rfork-style: isolate env (clean env, no parent inheritance)
isolateSrv?
Section titled “isolateSrv?”
readonlyoptionalisolateSrv?:boolean
Defined in: packages/runtime/src/container/types.ts:667
rfork-style: isolate /srv (new empty srvFS)
logBufferSize?
Section titled “logBufferSize?”
readonlyoptionallogBufferSize?:number
Defined in: packages/runtime/src/container/types.ts:663
Override the default log buffer size (bytes).
mounts?
Section titled “mounts?”
readonlyoptionalmounts?:Readonly<Record<string,MountSpec>>
Defined in: packages/runtime/src/container/types.ts:657
Extra mounts layered over image mounts.
readonlyoptionalname?:string
Defined in: packages/runtime/src/container/types.ts:645
Container name; auto-generated when omitted.
restart?
Section titled “restart?”
readonlyoptionalrestart?:RestartPolicy
Defined in: packages/runtime/src/container/types.ts:659
Restart policy — drives the manager’s restart supervisor.
readonlyoptionalrm?:boolean
Defined in: packages/runtime/src/container/types.ts:661
Auto-remove on PID-1 exit (docker --rm).
readonlyoptionaltty?:boolean
Defined in: packages/runtime/src/container/types.ts:655
Allocate a TTY on /dev/cons.