Skip to main content

Interface: ContainerCreateOptions

Properties

AttachStderr?

optional AttachStderr: boolean

Whether to attach to stderr (default false)

Source

packages/extension-api/src/extension-api.d.ts:2322


AttachStdin?

optional AttachStdin: boolean

Whether to attach to stdin (default false)

Source

packages/extension-api/src/extension-api.d.ts:2312


AttachStdout?

optional AttachStdout: boolean

Whether to attach to stdout(default false)

Source

packages/extension-api/src/extension-api.d.ts:2317


Cmd?

optional Cmd: string[]

Command to run specified as an array of strings

Source

packages/extension-api/src/extension-api.d.ts:2300


Detach?

optional Detach: boolean

Run the container in the background

Source

packages/extension-api/src/extension-api.d.ts:2337


Entrypoint?

optional Entrypoint: string | string[]

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).

Source

packages/extension-api/src/extension-api.d.ts:2307


Env?

optional Env: string[]

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

Source

packages/extension-api/src/extension-api.d.ts:2264


EnvFiles?

optional EnvFiles: string[]

Environment files to use

Source

packages/extension-api/src/extension-api.d.ts:2269


ExposedPorts?

optional ExposedPorts: Object

An object mapping ports to an empty object in the form: {"<port>/<tcp|udp|sctp>": {}}

Index signature

[port: string]: Object

Source

packages/extension-api/src/extension-api.d.ts:2280


HostConfig?

optional HostConfig: HostConfig

Container configuration that depends on the host we are running on

Source

packages/extension-api/src/extension-api.d.ts:2285


Hostname?

optional Hostname: string

The hostname to use for the container, as a valid RFC 1123 hostname

Source

packages/extension-api/src/extension-api.d.ts:2254


Image?

optional Image: string

The name (or reference) of the image to use when creating the container

Source

packages/extension-api/src/extension-api.d.ts:2290


Labels?

optional Labels: Object

User-defined key/value metadata

Index signature

[label: string]: string

Source

packages/extension-api/src/extension-api.d.ts:2274


OpenStdin?

optional OpenStdin: boolean

Whether to open stdin (default false)

Source

packages/extension-api/src/extension-api.d.ts:2327


StdinOnce?

optional StdinOnce: boolean

Close stdin after one attached client disconnects (deafult false)

Source

packages/extension-api/src/extension-api.d.ts:2332


Tty?

optional Tty: boolean

Attach standard streams to a TTY, including stdin if it is not closed (default false)

Source

packages/extension-api/src/extension-api.d.ts:2295


User?

optional User: string

The user that commands are run as inside the container

Source

packages/extension-api/src/extension-api.d.ts:2259


name?

optional name: string

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

Source

packages/extension-api/src/extension-api.d.ts:2250


start?

optional start: boolean

Start the container immediately (default true)

Source

packages/extension-api/src/extension-api.d.ts:2342