Container Registries
Container registries store credentials used to pull container images from specified registry servers. Adding container registry credentials is useful for users who want to create Workspaces from private images and those hosted on private registries.
Container registries are managed through environment variables, enabling you to securely store and manage credentials. Daytona provides options to set, list, and delete container registries for your Workspaces.
Daytona provides options to set global environment variables that apply to all Workspaces or set environment variables for a specific Workspace. To set environment variables for a specific Workspace, use the --env
flag when creating a new Workspace, or configure the environment variables in the Workspace’s template. For server-wide environment variables that apply to all new Workspaces, use the daytona env
command.
Set a Container Registry
Daytona provides an option to set a container registry through environment variables for your Workspace.
- Run the following command to set a container registry environment variable:
daytona env set
- Set the server environment variable key for the container registry:
Set server environment variableKey>
- Set the server environment variable value for the container registry:
Value>
- Select whether to add another environment variable:
Add another environment variable?
[Yes] [No]
Upon selecting, Daytona will set the container registry environment variables for your Workspace.
Server environment variables have been set successfully
List Container Registries
Daytona provides an option to list the container registries configured for your Workspaces.
- Run the following command to list the container registries:
daytona env list
Upon running this command, Daytona will display a list of your configured container registries’ environment variables.
Key Value────────────────────────────────────MyEnvVariable ********
Delete a Container Registry
Daytona provides an option to delete a container registry from your Workspace.
- Run the following command to delete a container registry:
daytona env delete
Upon running this command, you will be prompted to select the container registry you want to delete.
Select Server Environment Variables To Delete1 item===MyEnvVariable********
Server environment variables have been successfully removed