Container class
A Docker container.
Constructors
-
Container({Input<
List< ? args, Input<String> >List< ? command, Input<String> >Map< ? env, Input<String, String> >String> ? image, Input<int> ? runAsUser, Input<String> ? workingDir}) -
Creates a new Container.
argsOptional. Arguments passed to the entrypoint.commandOptional. If set, overrides the default ENTRYPOINT specified by the image.envOptional. Environment variables passed to the container's entrypoint.imageOptional. 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, thehost.gceInstance.serviceAccountfield 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.runAsUserOptional. If set, overrides the USER specified in the image with the given uid.workingDirOptional. 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.serviceAccountfield 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