Container class

A single application container.

This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.

Constructors

Container({List<String>? args, List<String>? command, List<EnvVar>? env, List<EnvFromSource>? envFrom, String? image, String? imagePullPolicy, Probe? livenessProbe, String? name, List<ContainerPort>? ports, Probe? readinessProbe, ResourceRequirements? resources, SecurityContext? securityContext, Probe? startupProbe, String? terminationMessagePath, String? terminationMessagePolicy, List<VolumeMount>? volumeMounts, String? workingDir})
Container.fromJson(Map json_)

Properties

args List<String>?
Arguments to the entrypoint.
getter/setter pair
command List<String>?
Entrypoint array.
getter/setter pair
env List<EnvVar>?
List of environment variables to set in the container.
getter/setter pair
envFrom List<EnvFromSource>?
Not supported by Cloud Run.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
image String?
Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry.
getter/setter pair
imagePullPolicy String?
Image pull policy.
getter/setter pair
livenessProbe Probe?
Periodic probe of container liveness.
getter/setter pair
name String?
Name of the container specified as a DNS_LABEL (RFC 1123).
getter/setter pair
ports List<ContainerPort>?
List of ports to expose from the container.
getter/setter pair
readinessProbe Probe?
Not supported by Cloud Run.
getter/setter pair
resources ResourceRequirements?
Compute Resources required by this container.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
securityContext SecurityContext?
Not supported by Cloud Run.
getter/setter pair
startupProbe Probe?
Startup probe of application within the container.
getter/setter pair
terminationMessagePath String?
Path at which the file to which the container's termination message will be written is mounted into the container's filesystem.
getter/setter pair
terminationMessagePolicy String?
Indicate how the termination message should be populated.
getter/setter pair
volumeMounts List<VolumeMount>?
Volume to mount into the container's filesystem.
getter/setter pair
workingDir String?
Container's working directory.
getter/setter pair

Methods

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

Operators

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