> ## 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 Docker images and make them available to your resources. This guide will help you create and delete registries in Container Registry.

## How to create a registry

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

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

Though the `--name` parameter is not required, the registry name simplifies finding the registry in the list of registries in Container Registry.

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. From the registry creation command output, copy the registry ID part from the `metadata.id` parameter 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` parameter 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](/container-registry/quickstart#prepare-your-environment) and [registry path](/container-registry/quickstart#create-a-registry) environment variables, use the following command:

   ```bash theme={null}
   docker images cr.$REGION_ID.nebius.cloud/$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 more quickly:

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