Getting information about existing Docker images
Written by
Updated at September 23, 2024
Find out how to get:
Getting a list of Docker images in a registry
CLI
API
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
Get a list of Docker images in the current registry:
yc container image list
Result:
+----------------------+---------------------+----------------------------+------+-----------------+
| ID | CREATED | NAME | TAGS | COMPRESSED SIZE |
+----------------------+---------------------+----------------------------+------+-----------------+
| crp9vik7sgec******** | 2019-01-17 17:00:48 | crph8pf7irvc********/myimg | 111 | 30.7 MB |
+----------------------+---------------------+----------------------------+------+-----------------+
Getting information about a Docker image
CLI
API
Get detailed information about a Docker image using the id
from the previous item:
yc container image get crphc7nnrvhl********
Result:
id:crphc7nnrvhl********
name: crpd50616s9a********/ubuntu
digest: sha256:035ac8e1bd9c49871a2fd76ccb3c4b0f84e7eee775919ccd345337ec********
...
size: "163"
tags:
- hello