Yandex Cloud
Search
Contact UsGet started
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
Language / Region
Yandex project
© 2023 Intertech Services AG
Yandex Container Registry
  • Getting started
  • Step-by-step guides
  • Yandex Container Solution
  • Tutorials
  • Concepts
  • Access management
  • Pricing policy
  • API reference
  • Troubleshooting
  • Questions and answers
  1. Step-by-step guides
  2. Managing a Docker image
  3. Pulling a Docker image from a registry

Pulling a Docker image from a registry

Written by
Yandex Cloud

To download a Docker image, you need to know the repository it is stored in as well as its tag or digest.

CLI
  1. Select the Docker image you need. To do this, get a list of the Docker images in the registry.

  2. Pull the Docker image from the registry:

    • Using the tag:

      docker pull cr.yandex/crpd50616s9a2t7gr8mi/ubuntu:hello
      

      Result:

      hello: Pulling from crpd50616s9a2t7gr8mi/ubuntu
      84ed7d2f608f: Already exists
      be2bf1c4a48d: Already exists
      a5bdc6303093: Already exists
      e9055237d68d: Already exists
      Digest: sha256:035ac8e1bd9c49871a2fd76ccb3c4b0f84e7eee775919ccd345337ec7b49f80d
      Status: Downloaded newer image for cr.yandex/crpd50616s9a2t7gr8mi/ubuntu:hello
      
    • Using the digest:

      docker pull cr.yandex/crpd50616s9a2t7gr8mi/ubuntu@sha256:035ac8e1bd9c49871a2fd76
      

      Result:

      ccb3c4b0f84e7eee775919ccd345337ec7b49f80d
      sha256:035ac8e1bd9c49871a2fd76ccb3c4b0f84e7eee775919ccd345337ec7b49f80d: Pulling from crpd50616s9a2t7gr8mi/ubuntu
      84ed7d2f608f: Already exists
      ...
      e9055237d68d: Already exists
      Digest: sha256:035ac8e1bd9c49871a2fd76ccb3c4b0f84e7eee775919ccd345337ec7b49f80d
      Status: Downloaded newer image for cr.yandex/crpd50616s9a2t7gr8mi/ubuntu@sha256:035ac8e1bd9c49871a2fd76ccb3c4b0f84e7eee775919ccd345337ec7b49f80d
      

      Note that in this case the Docker image will be pulled with no tag. The TAG field value will be <none>.

  3. Make sure the Docker image has been pulled:

    docker image list
    

    Result:

    REPOSITORY                                  TAG     IMAGE ID      CREATED       SIZE
    cr.yandex/crpd50616s9a2t7gr8mi/ubuntu  <none>  50ff4b0e5783  24 hours ago  86.7MB
    ubuntu                                      latest  1d9c17228a9e  2 weeks ago   86.7MB
    

See also

  • Troubleshooting in Container Registry.

Was the article helpful?

Language / Region
Yandex project
© 2023 Intertech Services AG