Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Container Registry
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Authentication in Yandex Container Registry
    • Managing a Docker image
      • Getting information about available Docker images
      • Creating a Docker image
      • Pushing a Docker image to a registry
      • Pulling a Docker image from a registry
      • Deleting a Docker image from a registry
    • Managing a registry
      • Getting information about existing registries
      • Creating a registry
      • Updating a registry
      • Deleting a registry
    • Managing a repository
      • Getting information about existing repositories
    • Managing policies for automatically deleting Docker images
      • Getting information about existing lifecycle policies
      • Creating a lifecycle policy
      • Updating a lifecycle policy
      • Performing lifecycle policy dry runs
      • Deleting a lifecycle policy
    • Working with roles
      • Assign a role
      • Viewing assigned roles
      • Revoke a role
  • Yandex Container Solution
  • Use cases
    • All use cases
    • Running a Docker image on a VM
  • Concepts
    • Overview
    • Docker image
    • Registry
    • Repository
    • Policies for automatically deleting Docker images
    • Backups
    • Quotas and limits
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • ImageService
      • LifecyclePolicyService
      • RegistryService
      • RepositoryService
      • ScannerService
      • OperationService
    • REST
      • Overview
      • Image
        • Overview
        • delete
        • get
        • list
      • LifecyclePolicy
        • Overview
      • Registry
        • Overview
        • create
        • delete
        • get
        • list
        • listAccessBindings
        • setAccessBindings
        • update
        • updateAccessBindings
      • Repository
        • Overview
        • get
        • list
        • listAccessBindings
        • setAccessBindings
        • updateAccessBindings
      • Scanner
        • Overview
  • Troubleshooting
  • Questions and answers
  1. Step-by-step instructions
  2. Managing a repository
  3. Getting information about existing repositories

Getting information about existing repositories

  • Getting a list of repositories in a registry
  • Getting information about a repository

Getting a list of repositories in a registry

CLI
API

If you don't have the Yandex.Cloud 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.

  1. View a description of the CLI command to get a list of repositories:

    yc container repository list --help
    
  2. 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
      

      Command execution 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 crp0pmf1n68tt345tf02
      

      Where:

      • --registry-id: Registry ID.

      Command execution result:

      +----------------------+-----------------------------+
      |          ID          |            NAME             |
      +----------------------+-----------------------------+
      | crp8bu81b5afogqjrg92 | crp0pmf1n68tt345tf02/ubuntu |
      +----------------------+-----------------------------+
      

You can get a list of repositories in a registry by using the list method for the Repository resource.

Getting information about a repository

CLI

If you don't have the Yandex.Cloud 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.

  1. View a description of the CLI command to get repository information:

    yc container repository get --help
    
  2. Get information about the repository.

    • By repository ID:

      yc container repository get --id  crp8bu81b5afogqjrg92
      

      Where:

      • --id: Repository ID.

      Command execution result:

      name: crp0pmf1n68tt345tf02/ubuntu
      id: crp8bu81b5afogqjrg92
      
    • By repository name:

      yc container repository get --name crp0pmf1n68tt345tf02/ubuntu
      

      Where:

      • --name: Repository name.

      Command execution 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 specifying crpvplula8p3nn86jtnb/myproject/myservice, crpvplula8p3nn86jtnb/myproject, or crpvplula8p3nn86jtnb.

In this article:
  • Getting a list of repositories in a registry
  • Getting information about a repository
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC