Skip to content

dsdk / v1.47 / ImageConfig

Type Alias: ImageConfig ​

ImageConfig: object

Configuration of the image. These fields are used as defaults when starting a container from the image.

Type declaration ​

NameTypeDescription
ArgsEscaped?boolean | nullCommand is already escaped (Windows only)
AttachStderr?booleanWhether to attach to stderr.


> Deprecated: this field is not part of the image specification and is > always false. It must not be used, and will be removed in API v1.48.
AttachStdin?booleanWhether to attach to stdin.


> Deprecated: this field is not part of the image specification and is > always false. It must not be used, and will be removed in API v1.48.
AttachStdout?booleanWhether to attach to stdout.


> Deprecated: this field is not part of the image specification and is > always false. It must not be used, and will be removed in API v1.48.
Cmd?string[]Command to run specified as a string or an array of strings.
Domainname?stringThe domain name to use for the container. > Deprecated: this field is not part of the image specification and is > always empty. It must not be used, and will be removed in API v1.48.
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. > Deprecated: this field is not part of the image specification and is > always empty. It must not be used, and will be removed in API v1.48.
Image?stringThe name (or reference) of the image to use when creating the container, or which was used when the container was created.


> Deprecated: this field is not part of the image specification and is > always empty. It must not be used, and will be removed in API v1.48.
Labels?objectUser-defined key/value metadata.
MacAddress?string | nullMAC address of the container.


> Deprecated: this field is not part of the image specification and is > always omitted. It must not be used, and will be removed in API v1.48.
NetworkDisabled?boolean | nullDisable networking for the container.


> Deprecated: this field is not part of the image specification and is > always omitted. It must not be used, and will be removed in API v1.48.
OnBuild?string[] | nullONBUILD metadata that were defined in the image's Dockerfile.
OpenStdin?booleanOpen stdin


> Deprecated: this field is not part of the image specification and is > always false. It must not be used, and will be removed in API v1.48.
Shell?string[] | nullShell for when RUN, CMD, and ENTRYPOINT uses a shell.
StdinOnce?booleanClose stdin after one attached client disconnects.


> Deprecated: this field is not part of the image specification and is > always false. It must not be used, and will be removed in API v1.48.
StopSignal?string | nullSignal to stop a container as a string or unsigned integer.
StopTimeout?number | nullTimeout to stop a container in seconds.


> Deprecated: this field is not part of the image specification and is > always omitted. It must not be used, and will be removed in API v1.48.
Tty?booleanAttach standard streams to a TTY, including stdin if it is not closed.


> Deprecated: this field is not part of the image specification and is > always false. It must not be used, and will be removed in API v1.48.
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.