Interface: ContainerCreateOptions
Defined in: packages/extension-api/src/extension-api.d.ts:3279
Properties
ArgsEscaped?
optionalArgsEscaped:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3410
Default: false
Command is already escaped (Windows only)
AttachStderr?
optionalAttachStderr:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3378
Whether to attach to stderr (default false)
AttachStdin?
optionalAttachStdin:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3368
Whether to attach to stdin (default false)
AttachStdout?
optionalAttachStdout:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3373
Whether to attach to stdout(default false)
Cmd?
optionalCmd:string[]
Defined in: packages/extension-api/src/extension-api.d.ts:3356
Command to run specified as an array of strings
Detach?
optionalDetach:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3393
Run the container in the background
Domainname?
optionalDomainname:string
Defined in: packages/extension-api/src/extension-api.d.ts:3310
The domain name to use for the container.
Entrypoint?
optionalEntrypoint:string|string[]
Defined in: packages/extension-api/src/extension-api.d.ts:3363
The entry point for the container as a string or an array of strings.
If the array consists of exactly one empty string ([""]) then the entry point is reset to system default (i.e., the entry point used by docker when there is no ENTRYPOINT instruction in the Containerfile).
Env?
optionalEnv:string[]
Defined in: packages/extension-api/src/extension-api.d.ts:3320
A list of environment variables to set inside the container in the form ["VAR=value", ...]. A variable without = is removed from the environment, rather than to have an empty value
EnvFiles?
optionalEnvFiles:string[]
Defined in: packages/extension-api/src/extension-api.d.ts:3325
Environment files to use
ExposedPorts?
optionalExposedPorts:object
Defined in: packages/extension-api/src/extension-api.d.ts:3336
An object mapping ports to an empty object in the form: {"<port>/<tcp|udp|sctp>": {}}
Index Signature
[port: string]: object
HealthCheck?
optionalHealthCheck:HealthConfig
Defined in: packages/extension-api/src/extension-api.d.ts:3403
A test to perform to check that the container is healthy. See HealthConfig for usage details
HostConfig?
optionalHostConfig:HostConfig
Defined in: packages/extension-api/src/extension-api.d.ts:3341
Container configuration that depends on the host we are running on
Hostname?
optionalHostname:string
Defined in: packages/extension-api/src/extension-api.d.ts:3305
The hostname to use for the container, as a valid RFC 1123 hostname
Image?
optionalImage:string
Defined in: packages/extension-api/src/extension-api.d.ts:3346
The name (or reference) of the image to use when creating the container
Labels?
optionalLabels:object
Defined in: packages/extension-api/src/extension-api.d.ts:3330
User-defined key/value metadata
Index Signature
[label: string]: string
MacAddress?
optionalMacAddress:string
Defined in: packages/extension-api/src/extension-api.d.ts:3430
MAC address of the container.
name?
optionalname:string
Defined in: packages/extension-api/src/extension-api.d.ts:3283
Assign the specified name to the container. Must match the regular expression/?[a-zA-Z0-9][a-zA-Z0-9_.-]+. If not speficied, the platform assigns a unique name to the container
NetworkConfig?
optionalNetworkConfig:NetworkingConfig
Defined in: packages/extension-api/src/extension-api.d.ts:3454
NetworkDisabled?
optionalNetworkDisabled:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3425
Disable networking for the container.
OnBuild?
optionalOnBuild:string[]
Defined in: packages/extension-api/src/extension-api.d.ts:3435
ONBUILD metadata that were defined in the image's Dockerfile.
OpenStdin?
optionalOpenStdin:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3383
Whether to open stdin (default false)
platform?
optionalplatform:string
Defined in: packages/extension-api/src/extension-api.d.ts:3300
Default: ""
Platform in the format os[/arch[/variant]] used for image lookup.
When specified, the daemon checks if the requested image is present in the local image cache with the given OS and Architecture, and otherwise returns a 404 status.
If the option is not set, the host's native OS and Architecture are used to look up the image in the image cache. However, if no platform is passed and the given image does exist in the local image cache, but its OS or architecture does not match, the container is created with the available image, and a warning is added to the Warnings field in the response, for example;
WARNING: The requested image's platform (linux/arm64/v8) does not
match the detected host platform (linux/amd64) and no
specific platform was requested
pod?
optionalpod:string
Defined in: packages/extension-api/src/extension-api.d.ts:3459
Pod where to create the container in
Shell?
optionalShell:string[]
Defined in: packages/extension-api/src/extension-api.d.ts:3452
Shell for when RUN, CMD, and ENTRYPOINT uses a shell.
start?
optionalstart:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3398
Start the container immediately (default true)
StdinOnce?
optionalStdinOnce:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3388
Close stdin after one attached client disconnects (deafult false)
StopSignal?
optionalStopSignal:string
Defined in: packages/extension-api/src/extension-api.d.ts:3440
Signal to stop a container as a string or unsigned integer.
StopTimeout?
optionalStopTimeout:number
Defined in: packages/extension-api/src/extension-api.d.ts:3447
Default: 10
Timeout to stop a container in seconds.
Tty?
optionalTty:boolean
Defined in: packages/extension-api/src/extension-api.d.ts:3351
Attach standard streams to a TTY, including stdin if it is not closed (default false)
User?
optionalUser:string
Defined in: packages/extension-api/src/extension-api.d.ts:3315
The user that commands are run as inside the container
Volumes?
optionalVolumes:object
Defined in: packages/extension-api/src/extension-api.d.ts:3415
An object mapping mount point paths inside the container to empty objects.
Index Signature
[volume: string]: object
WorkingDir?
optionalWorkingDir:string
Defined in: packages/extension-api/src/extension-api.d.ts:3420
The working directory for commands to run in.