Skip to content

dsdk / v1.47 / ContainerConfig

Type Alias: ContainerConfig ​

ContainerConfig: object

Configuration for a container that is portable between hosts.

Type declaration ​

NameTypeDescription
ArgsEscaped?boolean | nullCommand is already escaped (Windows only)
AttachStderr?booleanWhether to attach to stderr.
AttachStdin?booleanWhether to attach to stdin.
AttachStdout?booleanWhether to attach to stdout.
Cmd?string[]Command to run specified as a string or an array of strings.
Domainname?stringThe domain name to use for the container.
Entrypoint?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 Dockerfile).
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.
ExposedPorts?object | nullAn object mapping ports to an empty object in the form: {"<port>/<tcp|udp|sctp>": {}}
Healthcheck?HealthConfig-
Hostname?stringThe hostname to use for the container, as a valid RFC 1123 hostname.
Image?stringThe name (or reference) of the image to use when creating the container, or which was used when the container was created.
Labels?objectUser-defined key/value metadata.
MacAddress?string | nullMAC address of the container. Deprecated: this field is deprecated in API v1.44 and up. Use EndpointSettings.MacAddress instead.
NetworkDisabled?boolean | nullDisable networking for the container.
OnBuild?string[] | nullONBUILD metadata that were defined in the image's Dockerfile.
OpenStdin?booleanOpen stdin
Shell?string[] | nullShell for when RUN, CMD, and ENTRYPOINT uses a shell.
StdinOnce?booleanClose stdin after one attached client disconnects
StopSignal?string | nullSignal to stop a container as a string or unsigned integer.
StopTimeout?number | nullTimeout to stop a container in seconds.
Tty?booleanAttach standard streams to a TTY, including stdin if it is not closed.
User?stringThe user that commands are run as inside the container.
Volumes?objectAn object mapping mount point paths inside the container to empty objects.
WorkingDir?stringThe working directory for commands to run in.