public sealed class WorkstationConfig.Types.Container : IMessage<WorkstationConfig.Types.Container>, IEquatable<WorkstationConfig.Types.Container>, IDeepCloneable<WorkstationConfig.Types.Container>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Workstations v1 API class WorkstationConfig.Types.Container.
A Docker container.
Implements
IMessageWorkstationConfigTypesContainer, IEquatableWorkstationConfigTypesContainer, IDeepCloneableWorkstationConfigTypesContainer, IBufferMessage, IMessageNamespace
Google.Cloud.Workstations.V1Assembly
Google.Cloud.Workstations.V1.dll
Constructors
Container()
public Container()
Container(Container)
public Container(WorkstationConfig.Types.Container other)
Parameter | |
---|---|
Name | Description |
other |
WorkstationConfigTypesContainer |
Properties
Args
public RepeatedField<string> Args { get; }
Optional. Arguments passed to the entrypoint.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |
Command
public RepeatedField<string> Command { get; }
Optional. If set, overrides the default ENTRYPOINT specified by the image.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |
Env
public MapField<string, string> Env { get; }
Optional. Environment variables passed to the container's entrypoint.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
Image
public string Image { get; set; }
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 and must have
permission to pull the specified image. Otherwise, the image must be
publicly accessible.
Property Value | |
---|---|
Type | Description |
string |
RunAsUser
public int RunAsUser { get; set; }
Optional. If set, overrides the USER specified in the image with the given uid.
Property Value | |
---|---|
Type | Description |
int |
WorkingDir
public string WorkingDir { get; set; }
Optional. If set, overrides the default DIR specified by the image.
Property Value | |
---|---|
Type | Description |
string |