My container registry is using a lot of storage for for a small number of images. I wanna know the reason or detail.

fun freechat 20 Reputation points
2025-05-14T06:07:58.56+00:00

I uploaded several images. The local observation is less than 10G, but the Azure container registry statistics show that 40+G of space is used. I want to know what is occupying my storage.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
511 questions
{count} votes

Accepted answer
  1. Sudheer Reddy 2,055 Reputation points Microsoft External Staff Moderator
    2025-05-19T09:21:37.3833333+00:00

    Hi fun freechat,

    Currently, your retention policy is disabled. When a retention policy is enabled, untagged manifests in the registry are automatically deleted after a number of days you set. This feature prevents the registry from filling up with artifacts that aren't needed and helps you save on storage costs. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-retention-policy

    If you are using the purge command, images by tag in a repository that match a name filter and that are older than a specified duration, by default, only tag references are deleted, not the underlying manifests and layer data. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-auto-purge#use-the-purge-commandUser's image

    Please check commands once here

    Please check below documentation for information which covers several methods for deleting image data: https://learn.microsoft.com/en-us/azure/container-registry/container-registry-delete

    If the information is helpful, please click on "Upvote"

    If you have any queries, please do let us know, we will help you.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.