ServiceTaskSpecContainerSpec class

Constructors

ServiceTaskSpecContainerSpec({Input<List<String>?>? args, Input<List<String>?>? capAdds, Input<List<String>?>? capDrops, Input<List<String>?>? commands, Input<List<ServiceTaskSpecContainerSpecConfig>?>? configs, Input<String?>? dir, Input<ServiceTaskSpecContainerSpecDnsConfig?>? dnsConfig, Input<Map<String, String>?>? env, Input<List<String>?>? groups, Input<ServiceTaskSpecContainerSpecHealthcheck?>? healthcheck, Input<String?>? hostname, Input<List<ServiceTaskSpecContainerSpecHost>?>? hosts, required Input<String> image, Input<bool?>? init, Input<String?>? isolation, Input<List<ServiceTaskSpecContainerSpecLabel>?>? labels, Input<List<ServiceTaskSpecContainerSpecMount>?>? mounts, Input<ServiceTaskSpecContainerSpecPrivileges?>? privileges, Input<bool?>? readOnly, Input<List<ServiceTaskSpecContainerSpecSecret>?>? secrets, Input<String?>? stopGracePeriod, Input<String?>? stopSignal, Input<Map<String, String>?>? sysctl, Input<String?>? user})
Creates a new ServiceTaskSpecContainerSpec. args Arguments to the command capAdds List of Linux capabilities to add to the container capDrops List of Linux capabilities to drop from the container commands 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. configs References to zero or more configs that will be exposed to the service dir The working directory for commands to run in dnsConfig Specification for DNS related configurations in resolver configuration file (resolv.conf) env A list of environment variables in the form VAR="value" groups A list of additional groups that the container process will run as healthcheck A test to perform to check that the container is healthy. It works in the same way, and has the same default values, as the HEALTHCHECK Dockerfile instruction set by the service's Docker image. Your Compose file can override the values set in the Dockerfile. hostname The hostname to use for the container, as a valid RFC 1123 hostname hosts A list of hostname/IP mappings to add to the container's hosts file image 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 repoDigest or docker.RegistryImage with the name attribute for this, as shown in the examples. init Configured whether an init process should be injected for this container. If unset this will default to the dockerd defaults. isolation Isolation technology of the containers running the service. (Windows only). Defaults to default. labels User-defined key/value metadata mounts Specification for mounts to be added to containers created as part of the service privileges Security options for the container readOnly Mount the container's root filesystem as read only secrets References to zero or more secrets that will be exposed to the service stopGracePeriod 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. stopSignal Signal to stop the container sysctl Sysctls config (Linux only) user The user inside the container
const
ServiceTaskSpecContainerSpec.fromMap(Map<String, dynamic> map)
factory

Properties

args → Input<List<String>?>?
Arguments to the command
final
capAdds → Input<List<String>?>?
List of Linux capabilities to add to the container
final
capDrops → Input<List<String>?>?
List of Linux capabilities to drop from the container
final
commands → Input<List<String>?>?
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.
final
configs → Input<List<ServiceTaskSpecContainerSpecConfig>?>?
References to zero or more configs that will be exposed to the service
final
dir → Input<String?>?
The working directory for commands to run in
final
dnsConfig → Input<ServiceTaskSpecContainerSpecDnsConfig?>?
Specification for DNS related configurations in resolver configuration file (resolv.conf)
final
env → Input<Map<String, String>?>?
A list of environment variables in the form VAR="value"
final
groups → Input<List<String>?>?
A list of additional groups that the container process will run as
final
hashCode → int
The hash code for this object.
no setterinherited
healthcheck → Input<ServiceTaskSpecContainerSpecHealthcheck?>?
A test to perform to check that the container is healthy. It works in the same way, and has the same default values, as the HEALTHCHECK Dockerfile instruction set by the service's Docker image. Your Compose file can override the values set in the Dockerfile.
final
hostname → Input<String?>?
The hostname to use for the container, as a valid RFC 1123 hostname
final
hosts → Input<List<ServiceTaskSpecContainerSpecHost>?>?
A list of hostname/IP mappings to add to the container's hosts file
final
image → Input<String>
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 repoDigest or docker.RegistryImage with the name attribute for this, as shown in the examples.
final
init → Input<bool?>?
Configured whether an init process should be injected for this container. If unset this will default to the dockerd defaults.
final
isolation → Input<String?>?
Isolation technology of the containers running the service. (Windows only). Defaults to default.
final
labels → Input<List<ServiceTaskSpecContainerSpecLabel>?>?
User-defined key/value metadata
final
mounts → Input<List<ServiceTaskSpecContainerSpecMount>?>?
Specification for mounts to be added to containers created as part of the service
final
privileges → Input<ServiceTaskSpecContainerSpecPrivileges?>?
Security options for the container
final
readOnly → Input<bool?>?
Mount the container's root filesystem as read only
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secrets → Input<List<ServiceTaskSpecContainerSpecSecret>?>?
References to zero or more secrets that will be exposed to the service
final
stopGracePeriod → Input<String?>?
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.
final
stopSignal → Input<String?>?
Signal to stop the container
final
sysctl → Input<Map<String, String>?>?
Sysctls config (Linux only)
final
user → Input<String?>?
The user inside the container
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited