OptionalArgsArguments to the command.
OptionalCapabilityA list of kernel capabilities to add to the default set for the container.
OptionalCapabilityA list of kernel capabilities to drop from the default set for the container.
OptionalCommandThe command to be run in the image.
OptionalConfigsConfigs contains references to zero or more configs that will be exposed to the service.
OptionalDNSConfigOptionalDirThe working directory for commands to run in.
OptionalEnvA list of environment variables in the form VAR=value.
OptionalGroupsA list of additional groups that the container process will run as.
OptionalHealthOptionalHostnameThe hostname to use for the container, as a valid RFC 1123 hostname.
OptionalHostsA list of hostname/IP mappings to add to the container's hosts file. The format of extra hosts is specified in the hosts(5) man page: IP_address canonical_hostname [aliases...]
OptionalImageThe image name to use for the container
OptionalInitRun an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used.
OptionalIsolationIsolation technology of the containers running the service. (Windows only)
OptionalLabelsUser-defined key/value data.
OptionalMountsSpecification for mounts to be added to containers created as part of the service.
OptionalOpenOpen stdin
OptionalPrivilegesOptionalReadMount the container's root filesystem as read only.
OptionalSecretsSecrets contains references to zero or more secrets that will be exposed to the service.
OptionalStopAmount of time to wait for the container to terminate before forcefully killing it.
OptionalStopSignal to stop the container.
OptionalSysctlsSet kernel namedspaced parameters (sysctls) in the container. The Sysctls option on services accepts the same sysctls as the are supported on containers. Note that while the same sysctls are supported, no guarantees or checks are made about their suitability for a clustered environment, and it's up to the user to determine whether a given sysctl will work properly in a Service.
OptionalTTYWhether a pseudo-TTY should be allocated.
OptionalUlimitsA list of resource limits to set in the container. For example: {\"Name\": \"nofile\", \"Soft\": 1024, \"Hard\": 2048}"
OptionalUserThe user inside the container.
Container spec for the service.
> Note: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are > mutually exclusive. PluginSpec is only used when the Runtime field > is set toplugin. NetworkAttachmentSpec is used when the Runtime > field is set toattachment. TaskSpecContainerSpec