Container class

A Docker container.

Constructors

Container({Input<List<String>>? args, Input<List<String>>? command, Input<Map<String, String>>? env, Input<String>? image, Input<int>? runAsUser, Input<String>? workingDir})
Creates a new Container. args Optional. Arguments passed to the entrypoint. command Optional. If set, overrides the default ENTRYPOINT specified by the image. env Optional. Environment variables passed to the container's entrypoint. image Optional. A Docker container image that defines a custom environment. Cloud Workstations provides a number of preconfigured images, but you can create your own custom container images. If using a private image, the host.gceInstance.serviceAccount field must be specified in the workstation configuration. If using a custom container image, the service account must have Artifact Registry Reader permission to pull the specified image. Otherwise, the image must be publicly accessible. runAsUser Optional. If set, overrides the USER specified in the image with the given uid. workingDir Optional. If set, overrides the default DIR specified by the image.
const
Container.fromMap(Map<String, dynamic> map)
factory

Properties

args → Input<List<String>>?
Optional. Arguments passed to the entrypoint.
final
command → Input<List<String>>?
Optional. If set, overrides the default ENTRYPOINT specified by the image.
final
env → Input<Map<String, String>>?
Optional. Environment variables passed to the container's entrypoint.
final
hashCode → int
The hash code for this object.
no setterinherited
image → Input<String>?
Optional. A Docker container image that defines a custom environment. Cloud Workstations provides a number of preconfigured images, but you can create your own custom container images. If using a private image, the host.gceInstance.serviceAccount field must be specified in the workstation configuration. If using a custom container image, the service account must have Artifact Registry Reader permission to pull the specified image. Otherwise, the image must be publicly accessible.
final
runAsUser → Input<int>?
Optional. If set, overrides the USER specified in the image with the given uid.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workingDir → Input<String>?
Optional. If set, overrides the default DIR specified by the image.
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