acr icon indicating copy to clipboard operation
acr copied to clipboard

Show used storage space per repository

Open RabbitSharp opened this issue 5 years ago • 12 comments

What is the problem you're trying to solve I want to clean up my container registry and find out which repositories use the most storage space so that I can delete the manifests with the highest memory consumption.

Describe the solution you'd like I would like to be able to see the size of the repository in the repository overview and/or in the respective detailed views and/or with the az acr show-usage command.

Additional context Maybe something like this from the GCP image

or from amazons ecr image

RabbitSharp avatar Aug 05 '20 17:08 RabbitSharp

Hi @RabbitSharp - Thank you for your feedback. We are looking into displaying ACR's usage metrics (Storage and API ops) via the Azure Metrics blade. The latest on this feature can be found here: https://github.com/Azure/acr/issues/448.

Thanks, Reshmi Mangalore

mangalorereshmi avatar Aug 10 '20 19:08 mangalorereshmi

Closing this request as we are tracking it using ACR's Metrics and alerts enhancement feature https://github.com/Azure/acr/issues/448.

mangalorereshmi avatar Aug 10 '20 19:08 mangalorereshmi

I'm not sure why you closed this, the request was to get metrics on the storage usage per repo. The link you've sent is just a feature asking for the usage of the whole reg and doesn't seem to be available still. When will this metric be available?

BenH-Puregym avatar May 23 '22 12:05 BenH-Puregym

We have a use case as well to determine storage size by repository/namespace.

ktumu0225 avatar Jun 09 '22 16:06 ktumu0225

@mangalorereshmi Please reopen this as it was stated that it is not planned in #448 as stated by @Wwwsylvia

Alternatively #169 could also get re-opened as suggested by @StingyJack

krsche avatar Aug 12 '22 08:08 krsche

Please re-open this.

daseth avatar Nov 08 '22 11:11 daseth

Please re-open this as there is currently no way of calculating the actual disk space that each repository uses. All we users have access to is the sum of all manifests in a repository and that is not the actual disk space.

Tiana125 avatar Jan 11 '24 23:01 Tiana125

Reopening this issue

terencet-dev avatar Jan 24 '24 16:01 terencet-dev

is there any update on this? is there a way to check the amount space an ACR is occupying or consuming?

asus4you avatar Jul 04 '24 16:07 asus4you

@terencet-dev Are there any updates or alternative methods we can use to get the results?

hitensam avatar Jan 06 '25 06:01 hitensam

there is a way to see the total consumption but then there is another issue not sure if I can include this here but when we try to remove a specific tag image via "az acr" command it removes all the tags instead of a specific one.

az acr run --cmd 'acr purge --dry-run --filter '''test-namespace/.*:2.3.22-rc.1''' --ago 480m --untagged' --timeout 3600 --registry shtoolsacr /dev/null

so here I want to remove image with tag name 2.22-kv.1 but instead everything starts with 2.22 gets deleted, I have even tried several regEx formats as well

asus4you avatar Jan 06 '25 19:01 asus4you

After 4 years I think we can all conclude it's not gonna be developed and or happen any time soon.

Anyone that has found a quick workaround at this point?

jvdL-calvi avatar Jun 24 '25 16:06 jvdL-calvi

The ACR team is currently working on introducing this capability in 2026. I will continue to provide updates in this thread.

payalmahesh avatar Dec 16 '25 21:12 payalmahesh