Free up space in the Container Registry
To free up space in the Container Registry, you can delete unused data. Garbage Collection is used to delete unused data in the registry. The service collects unused data that can be deleted:
- image layers that are not referenced by any manifest;
- images without tags that appear after updating images.
Image layers
A container image is described in a manifest, which contains a description of the image layers (layers).
Each layer contains changes to the image relative to the previous layer. The last layer combines all layers and is the current version of the image. Learn more about layers in the Image Format Specification in the Open Container Initiative documentation on GitHub.
Example of layer description in a manifest:
"layers": [
{
"mediaType": "application/vnd.docker.image.tar.gzip",
"size": 48394,
"digest": "sha256:b6bc5667d566e6c6"
},
{
"mediaType": "application/vnd.docker.image.tar.gzip",
"size": 17453,
"digest": "sha256:1205abcd5b522e6b"
},
{
"mediaType": "application/vnd.docker.image.tar.gzip",
"size": 35279,
"digest": "sha256:fa46023e1248d8676"
}
]
A single layer can be used by multiple manifests. Garbage Collection collects layers that are not referenced by any manifest — such layers do not use images and can be safely deleted.
Delete unused data
During the data removal (registry cleanup) process, you can download images, but you cannot push new ones — the layers of the image being pushed may be deleted, which will lead to an image error.
- In the Control panel, in the top menu, click Products and select Container Registry.
- Open the Registries tab.
- The registry page will show the amount of unused data in this registry. Click Clear.
- Optional: select the Untagged images checkbox to delete them as well. By default, only unused image layers are deleted.
- Click Clear.