> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to manage registries in Container Registry

Registries in Container Registry store and easily access Docker images. This guide will help you create and delete registries in Container Registry.

## How to create a registry

To create a Container Registry registry, run the Nebius AI Cloud CLI command:

```bash theme={null}
nebius registry create \
  --name <registry_name>
```

Though the `--name` flag is not required, the registry name simplifies finding the registry in the Nebius AI Cloud registries list.

To access the created registry, do the following:

1. Get the region of the project in which you created a registry. You can get it from the endpoint saved in your configuration:

   ```bash theme={null}
   nebius config get endpoint
   ```

   In the output, copy the part after `api.`.

   See all region IDs in [Nebius AI Cloud regions](/overview/regions).

2. In the `metadata.id` field from the output, copy the registry ID part without the `registry-` prefix.

3. Use the values in the registry URL:

   ```bash theme={null}
   cr.<region_ID>.nebius.cloud/<registry_path>
   ```

## How to delete a registry

To delete a registry:

1. Get its ID and path by listing the registries:

   ```bash theme={null}
   nebius registry list
   ```

   The ID is returned in the `.metadata.id` field of the registry resource. The registry path is the registry ID part without the `registry-` prefix.

2. Check that the registry does not contain images. If you've already set up the [region](../quickstart#prepare-your-environment) and [registry path](../quickstart#create-a-registry) environment variables, use the following command:

   ```bash theme={null}
   docker images cr.$NB_REGION_ID.nebius.cloud/$NB_REGISTRY_PATH
   ```

   Alternatively, use the following command:

   ```bash theme={null}
   docker images cr.<region_ID>.nebius.cloud/<registry_ID_without_the_registry-_part>
   ```

   For example, for the registry with the `registry-a00bcdefghe12xyz3f` ID in the `eu-north1` region, use the following command:

   ```bash theme={null}
   docker images cr.eu-north1.nebius.cloud/a00bcdefghe12xyz3f
   ```

   See all region IDs in [Nebius AI Cloud regions](/overview/regions).

3. Run the following command with the registry ID:

   ```bash theme={null}
   storage.<region_ID>.nebius.cloud registry delete --id <registry_ID>
   ```

If you have just one registry and are sure it does not contain images, use this set of commands to delete it quicker:

```bash theme={null}
export NB_REGISTRY_ID=$(nebius registry list \
  --format json | jq -r ".items[0].metadata.id")
nebius registry delete --id $NB_REGISTRY_ID
```
