Reference documentation and code samples for the Cloud Workstations V1 API class Google::Cloud::Workstations::V1::WorkstationConfig::Container.
A Docker container.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#args
def args() -> ::Array<::String>
- (::Array<::String>) — Optional. Arguments passed to the entrypoint.
#args=
def args=(value) -> ::Array<::String>
- value (::Array<::String>) — Optional. Arguments passed to the entrypoint.
- (::Array<::String>) — Optional. Arguments passed to the entrypoint.
#command
def command() -> ::Array<::String>
- (::Array<::String>) — Optional. If set, overrides the default ENTRYPOINT specified by the image.
#command=
def command=(value) -> ::Array<::String>
- value (::Array<::String>) — Optional. If set, overrides the default ENTRYPOINT specified by the image.
- (::Array<::String>) — Optional. If set, overrides the default ENTRYPOINT specified by the image.
#env
def env() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Environment variables passed to the container's entrypoint.
#env=
def env=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. Environment variables passed to the container's entrypoint.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Environment variables passed to the container's entrypoint.
#image
def image() -> ::String
-
(::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 and must have permission to pull the specified image. Otherwise, the image must be publicly accessible.
#image=
def image=(value) -> ::String
-
value (::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 and must have permission to pull the specified image. Otherwise, the image must be publicly accessible.
-
(::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 and must have permission to pull the specified image. Otherwise, the image must be publicly accessible.
#run_as_user
def run_as_user() -> ::Integer
- (::Integer) — Optional. If set, overrides the USER specified in the image with the given uid.
#run_as_user=
def run_as_user=(value) -> ::Integer
- value (::Integer) — Optional. If set, overrides the USER specified in the image with the given uid.
- (::Integer) — Optional. If set, overrides the USER specified in the image with the given uid.
#working_dir
def working_dir() -> ::String
- (::String) — Optional. If set, overrides the default DIR specified by the image.
#working_dir=
def working_dir=(value) -> ::String
- value (::String) — Optional. If set, overrides the default DIR specified by the image.
- (::String) — Optional. If set, overrides the default DIR specified by the image.