Skip to content

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.

  1. Run the following command to set a container registry environment variable:
Terminal window
daytona env set
  1. Set the server environment variable key for the container registry:
Set server environment variable
Key
>

  1. Set the server environment variable value for the container registry:
Value
>
  1. 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.

  1. Run the following command to list the container registries:
Terminal window
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.

  1. Run the following command to delete a container registry:
Terminal window
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 Delete
1 item
===
MyEnvVariable
********
Server environment variables have been successfully removed