|
| 1 | +--- |
| 2 | +title: Container Registries |
| 3 | +description: Configure container registries for your Workspace in Daytona |
| 4 | +--- |
| 5 | + |
| 6 | +import Label from '@components/Label.astro' |
| 7 | + |
| 8 | +<Label> |
| 9 | + Distribution: **Open Source** |
| 10 | +</Label> |
| 11 | + |
| 12 | +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. |
| 13 | + |
| 14 | +## Add a Container Registry |
| 15 | + |
| 16 | +Daytona provides an option to add a container registry for your Workspace. |
| 17 | + |
| 18 | +1. Run the following command to add a container registry: |
| 19 | + |
| 20 | +```shell |
| 21 | +daytona container-registry add |
| 22 | +``` |
| 23 | + |
| 24 | +Upon running the command, you will be prompted to enter the following details: |
| 25 | + |
| 26 | +- **Server URL**: The URL of the container registry. |
| 27 | +- **Username**: The username to authenticate with the container registry. |
| 28 | +- **Password**: The password to authenticate with the container registry. |
| 29 | + |
| 30 | +```text |
| 31 | +Server URL |
| 32 | +> |
| 33 | +
|
| 34 | +Username |
| 35 | +> |
| 36 | +
|
| 37 | +Password |
| 38 | +> |
| 39 | +``` |
| 40 | + |
| 41 | +```text |
| 42 | +Registry set successfully |
| 43 | +``` |
| 44 | + |
| 45 | +## List Container Registries |
| 46 | + |
| 47 | +Daytona provides an option to list the container registries configured for your Workspaces. |
| 48 | + |
| 49 | +1. Run the following command to list the container registries: |
| 50 | + |
| 51 | +```shell |
| 52 | +daytona container-registry list |
| 53 | +``` |
| 54 | + |
| 55 | +Upon running this command, Daytona will display a list of your configured container registries with their respective details. |
| 56 | + |
| 57 | +```text |
| 58 | +Server Username Password |
| 59 | +───────────────────────────────────────────────────────────────────── |
| 60 | +myregistry.com daytona ******** |
| 61 | +``` |
| 62 | + |
| 63 | +## Delete a Container Registry |
| 64 | + |
| 65 | +Daytona provides an option to delete a container registry from your Workspace. |
| 66 | + |
| 67 | +1. Run the following command to delete a container registry: |
| 68 | + |
| 69 | +```shell |
| 70 | +daytona container-registry delete |
| 71 | +``` |
| 72 | + |
| 73 | +Upon running this command, you will be prompted to select the container registry you want to delete. |
| 74 | + |
| 75 | +```text |
| 76 | +Choose a container registry |
| 77 | +1 item |
| 78 | +=== |
| 79 | +myregistry.com |
| 80 | +daytona |
| 81 | +``` |
| 82 | + |
| 83 | +```text |
| 84 | +Container registry deleted successfully |
| 85 | +``` |
0 commit comments