/* generated using openapi-typescript-codegen -- do no edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { HealthConfig } from './HealthConfig'; /** * Configuration for a container that is portable between hosts. * * When used as `ContainerConfig` field in an image, `ContainerConfig` is an * optional field containing the configuration of the container that was last * committed when creating the image. * * Previous versions of Docker builder used this field to store build cache, * and it is not in active use anymore. * */ export type ContainerConfig = { /** * The hostname to use for the container, as a valid RFC 1123 hostname. */ Hostname?: string; /** * The domain name to use for the container. */ Domainname?: string; /** * The user that commands are run as inside the container. */ User?: string; /** * Whether to attach to `stdin`. */ AttachStdin?: boolean; /** * Whether to attach to `stdout`. */ AttachStdout?: boolean; /** * Whether to attach to `stderr`. */ AttachStderr?: boolean; /** * An object mapping ports to an empty object in the form: * * `{"/": {}}` * */ ExposedPorts?: Record; /** * Attach standard streams to a TTY, including `stdin` if it is not closed. */ Tty?: boolean; /** * Open `stdin` */ OpenStdin?: boolean; /** * Close `stdin` after one attached client disconnects */ StdinOnce?: boolean; /** * 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. * */ Env?: Array; /** * Command to run specified as a string or an array of strings. */ Cmd?: Array; Healthcheck?: HealthConfig; /** * Command is already escaped (Windows only) */ ArgsEscaped?: boolean; /** * The name of the image to use when creating the container */ Image?: string; /** * An object mapping mount point paths inside the container to empty objects. */ Volumes?: { additionalProperties?: any; }; /** * The working directory for commands to run in. */ WorkingDir?: 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`). * */ Entrypoint?: Array; /** * Disable networking for the container. */ NetworkDisabled?: boolean; /** * MAC address of the container. */ MacAddress?: string; /** * `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ OnBuild?: Array; /** * User-defined key/value metadata. */ Labels?: Record; /** * Signal to stop a container as a string or unsigned integer. */ StopSignal?: string; /** * Timeout to stop a container in seconds. */ StopTimeout?: number; /** * Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ Shell?: Array; };