Repository
A repository is a set of Docker images with the same name. Repositories usually contain several versions of the same Docker image. Tags and digests are used to work with versions inside the repository. For more information, see Docker image.
A repository is defined by the <registry ID>/<Docker image name>
combination.
-
In Docker CLI commands, use the full name that includes the Container Registry address:
$ docker push cr.yandex/<registry ID>/<Docker image name>
-
In YC CLI commands, use the repository name without the Container Registry address:
$ yc container image list --repository-name=<registry ID>/<Docker image name>
For a repository, you can set a policy for automatically deleting Docker images. Based on its rules, Docker images will be deleted automatically.