Getting information about existing repositories
Getting a list of repositories in a registry
If you don't have the Nebius Israel 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.
-
View a description of the CLI command to get a list of repositories:
yc container repository list --help
-
Get a list of repositories.
-
To get a list of all the repositories of all the registries in the current folder, run the command:
yc container repository list
Result:
+----------------------+-----------------------------+ | ID | NAME | +----------------------+-----------------------------+ | crp8bu81b5afogqjrg92 | crp0pmf1n68tt345tf02/ubuntu | | crps9c63eviioaehqsif | crpl3738e9v1qb3besp7/ubuntu | +----------------------+-----------------------------+
-
To get a list of all the repositories in a particular registry, run the command:
yc container repository list --registry-id <registry ID>
Result:
+----------------------+-----------------------------+ | ID | NAME | +----------------------+-----------------------------+ | crp8bu81b5afogqjrg92 | crp0pmf1n68tt345tf02/ubuntu | +----------------------+-----------------------------+
-
To retrieve a list of repositories in a registry, use the List method for the Repository resource.
Note
The repository appears in the list as soon as at least one Docker image is pushed to it.
Getting information about a repository
-
View a description of the CLI command to get repository information:
yc container repository get --help
-
Get information about the repository.
-
By repository ID:
yc container repository get --id <repository ID>
Result:
name: crp0pmf1n68tt345tf02/ubuntu id: crp8bu81b5afogqjrg92
-
By repository name:
yc container repository get --name <repository name>
Result:
name: crp0pmf1n68tt345tf02/ubuntu id: crp8bu81b5afogqjrg92
You can specify both the full name of the Docker image and prefixes. For example, you can get information about the
crpvplula8p3nn86jtnb/myproject/myservice
repository by specifyingcrpvplula8p3nn86jtnb/myproject/myservice
,crpvplula8p3nn86jtnb/myproject
, orcrpvplula8p3nn86jtnb
.
-
Get information about the repository.
-
By repository ID:
Use the Get method for the Repository resource. Specify the repository ID in the
repositoryId
property. -
By repository name:
Use the GetByName method for the Repository resource. In the
repositoryName
property, specify the repository name.
You can retrieve a list of repositories in a registry by using the List method for the Repository resource.