Backing up Docker images in Container Registry
Data in Container Registry is stored securely and replicated in the Nebius AI infrastructure. However, you can create backups of Docker images at any time.
To back up your Docker images:
-
View the list of available registries:
Management consoleCLI- In the management console
, select the folder where you want to view a list of registries. - Select Container Registry.
- You can see a list of registries on the Registries tab.
If you don't have the Nebius AI command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the
--folder-name
or--folder-id
parameter.ncp container registry list
Result:
+----------------------+-------------+----------------------+ | ID | NAME | FOLDER ID | +----------------------+-------------+----------------------+ | crp1abc2tl3def1h2gu6 | my-registry | b1g23ga82bcv0cdeferg | +----------------------+-------------+----------------------+
- In the management console
-
Get information about Docker images in each registry:
Management consoleCLI- In the management console
, select the folder where you want to view information about Docker images. - Select Container Registry.
- On the Registries tab, click the name of the registry.
- On the Repositories page, click the name of the repository.
- On the Docker images page you can see the Docker images.
ncp container image list --registry-name my-registry
Where
registry-name
: Registry name.Result:
+----------------------+---------------------+-----------------------------+-------+-----------------+ | ID | CREATED | NAME | TAGS | COMPRESSED SIZE | +----------------------+---------------------+-----------------------------+-------+-----------------+ | crpabcpg1pde2f33ekp4 | 2020-10-26 15:45:39 | crp1abc2tl3def1h2gu6/ubuntu | hello | 27.2 MB | +----------------------+---------------------+-----------------------------+-------+-----------------+
- In the management console
-
Download the Docker images you want from each registry using their full address:
cr.ai.nebius.cloud/<name>:<tag>
:CLIdocker pull cr.ai.nebius.cloud/crp1abc2tl3def1h2gu6/ubuntu:hello
Result:
hello: Pulling from crp1abc2tl3def1h2gu6/ubuntu Digest: sha256:1d2b339619babc2d008eca2d5293e3c43ff84cbee597ff76dd3e7f7de3e84956 Status: Downloaded newer image for cr.ai.nebius.cloud/crp1abc2tl3def1h2gu6/ubuntu:hello cr.ai.nebius.cloud/crp1abc2tl3def1h2gu6/ubuntu:hello
-
Make sure the Docker image has been pulled:
CLIdocker image list
Result:
REPOSITORY TAG IMAGE ID CREATED SIZE cr.ai.nebius.cloud /crp1abc2tl3def1h2gu6/ubuntu hello d12eaa3277bc 3 days ago 72.9MB ubuntu latest d12eaa3277bc 3 days ago 72.9MB