Learn how to use and configure environment variables in Gitpod workspaces.
.gitpod.yml[env]
).gitpod.yml
https://gitpod.io/#var=value,var2=value2/[repository-url]
.gitpod.yml[tasks][n][env]
).gitpod.yml
gitpod.env
.
GITPOD_WORKSPACE_ID
: A Universally Unique Identifier (UUID) for your workspaceGITPOD_WORKSPACE_URL
: The unique URL of your workspaceGITPOD_REPO_ROOT
: The path to your cloned git repository in the workspaceenv | grep GITPOD_
in your workspace terminal to see all Gitpod-specific environment variables. These are helpful for creating dynamic workspace behaviors.GITPOD_
prefix for internal use. Any user-defined variables with this prefix (like GITPOD_FOOBAR
) will be ignored and overwritten during workspace startup.
GIT_AUTHOR_NAME
GIT_AUTHOR_EMAIL
GIT_COMMITTER_NAME
GIT_COMMITTER_EMAIL
DOCKERD_ARGS
DOCKERD_ARGS
environment variable can be used to specify additional arguments to the docker installation running in your workspace. Currently,
mapping a user in your container to the gitpod
user in your workspace is supported. This helps if you are using an unprivileged user with your containers
(e.g., user 1000 in a node image) but need to edit files with VS Code created within the container. The content of the environment variable
should look like this:
GITPOD_IMAGE_AUTH
GITPOD_IMAGE_AUTH
environment variable to authenticate against private container registries. See the Workspace Image docs for more information.