/* 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. * */ 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 | null; /** * 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 | null; /** * The name (or reference) of the image to use when creating the container, * or which was used when the container was created. * */ Image?: string; /** * An object mapping mount point paths inside the container to empty * objects. * */ Volumes?: Record; /** * 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 | null; /** * MAC address of the container. * * Deprecated: this field is deprecated in API v1.44 and up. Use EndpointSettings.MacAddress instead. * */ MacAddress?: string | null; /** * `ONBUILD` metadata that were defined in the image's `Dockerfile`. * */ OnBuild?: Array | null; /** * User-defined key/value metadata. */ Labels?: Record; /** * Signal to stop a container as a string or unsigned integer. * */ StopSignal?: string | null; /** * Timeout to stop a container in seconds. */ StopTimeout?: number | null; /** * Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. * */ Shell?: Array | null; };