Container
import type { Container } from "https://googleapis.deno.dev/v1/workstations:v1.ts";
A Docker container.
interface Container {
args?: string[];
command?: string[];
env?: {};
[key: string]: string;
image?: string;
runAsUser?: number;
workingDir?: string;
}§Properties
§
env?: {}
[src][key: string]: string;
Optional. Environment variables passed to the container's entrypoint.
§
image?: string
[src]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.