ServiceTaskSpecContainerSpec

data class ServiceTaskSpecContainerSpec(val args: List<String>? = null, val commands: List<String>? = null, val configs: List<ServiceTaskSpecContainerSpecConfig>? = null, val dir: String? = null, val dnsConfig: ServiceTaskSpecContainerSpecDnsConfig? = null, val env: Map<String, String>? = null, val groups: List<String>? = null, val healthcheck: ServiceTaskSpecContainerSpecHealthcheck? = null, val hostname: String? = null, val hosts: List<ServiceTaskSpecContainerSpecHost>? = null, val image: String, val isolation: String? = null, val labels: List<ServiceTaskSpecContainerSpecLabel>? = null, val mounts: List<ServiceTaskSpecContainerSpecMount>? = null, val privileges: ServiceTaskSpecContainerSpecPrivileges? = null, val readOnly: Boolean? = null, val secrets: List<ServiceTaskSpecContainerSpecSecret>? = null, val stopGracePeriod: String? = null, val stopSignal: String? = null, val sysctl: Map<String, String>? = null, val user: String? = null)

Constructors

Link copied to clipboard
constructor(args: List<String>? = null, commands: List<String>? = null, configs: List<ServiceTaskSpecContainerSpecConfig>? = null, dir: String? = null, dnsConfig: ServiceTaskSpecContainerSpecDnsConfig? = null, env: Map<String, String>? = null, groups: List<String>? = null, healthcheck: ServiceTaskSpecContainerSpecHealthcheck? = null, hostname: String? = null, hosts: List<ServiceTaskSpecContainerSpecHost>? = null, image: String, isolation: String? = null, labels: List<ServiceTaskSpecContainerSpecLabel>? = null, mounts: List<ServiceTaskSpecContainerSpecMount>? = null, privileges: ServiceTaskSpecContainerSpecPrivileges? = null, readOnly: Boolean? = null, secrets: List<ServiceTaskSpecContainerSpecSecret>? = null, stopGracePeriod: String? = null, stopSignal: String? = null, sysctl: Map<String, String>? = null, user: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val args: List<String>? = null

Arguments to the command

Link copied to clipboard
val commands: List<String>? = null

The command/entrypoint to be run in the image. According to the docker cli the override of the entrypoint is also passed to the command property and there is no entrypoint attribute in the ContainerSpec of the service.

Link copied to clipboard

References to zero or more configs that will be exposed to the service

Link copied to clipboard
val dir: String? = null

The working directory for commands to run in

Link copied to clipboard

Specification for DNS related configurations in resolver configuration file (resolv.conf)

Link copied to clipboard
val env: Map<String, String>? = null

A list of environment variables in the form VAR="value"

Link copied to clipboard
val groups: List<String>? = null

A list of additional groups that the container process will run as

Link copied to clipboard

A test to perform to check that the container is healthy

Link copied to clipboard
val hostname: String? = null

The hostname to use for the container, as a valid RFC 1123 hostname

Link copied to clipboard

A list of hostname/IP mappings to add to the container's hosts file

Link copied to clipboard

The image name to use for the containers of the service, like nginx:1.17.6. Also use the data-source or resource of docker.RemoteImage with the repo_digest or docker.RegistryImage with the name attribute for this, as shown in the examples.

Link copied to clipboard
val isolation: String? = null

Isolation technology of the containers running the service. (Windows only). Defaults to default.

Link copied to clipboard

User-defined key/value metadata

Link copied to clipboard

Specification for mounts to be added to containers created as part of the service

Link copied to clipboard

Security options for the container

Link copied to clipboard
val readOnly: Boolean? = null

Mount the container's root filesystem as read only

Link copied to clipboard

References to zero or more secrets that will be exposed to the service

Link copied to clipboard
val stopGracePeriod: String? = null

Amount of time to wait for the container to terminate before forcefully removing it (ms|s|m|h). If not specified or '0s' the destroy will not check if all tasks/containers of the service terminate.

Link copied to clipboard
val stopSignal: String? = null

Signal to stop the container

Link copied to clipboard
val sysctl: Map<String, String>? = null

Sysctls config (Linux only)

Link copied to clipboard
val user: String? = null

The user inside the container