ImageConfig

constructor(user: String? = null, exposedPorts: Map<String, JsonObject>? = null, env: List<String>? = null, cmd: List<String>? = null, healthcheck: HealthConfig? = null, argsEscaped: Boolean? = false, volumes: Map<String, JsonObject>? = null, workingDir: String? = null, entrypoint: List<String>? = null, onBuild: List<String>? = null, labels: Map<String, String>? = null, stopSignal: String? = null, shell: List<String>? = null)

Parameters

user

The user that commands are run as inside the container.

exposedPorts

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

env

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.

cmd

Command to run specified as a string or an array of strings.

healthcheck
argsEscaped

Command is already escaped (Windows only)

volumes

An object mapping mount point paths inside the container to empty objects.

workingDir

The working directory for commands to run in.

entrypoint

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

onBuild

ONBUILD metadata that were defined in the image's Dockerfile.

labels

User-defined key/value metadata.

stopSignal

Signal to stop a container as a string or unsigned integer.

shell

Shell for when RUN, CMD, and ENTRYPOINT uses a shell.