Azure / acr

Azure Container Registry samples, troubleshooting tips and references
https://aka.ms/acr
Other
164 stars 112 forks source link

Cache Azure Container Registry Repositories #689

Open JXavierMSFT opened 1 year ago

JXavierMSFT commented 1 year ago

Caching for ACR will soon allow users to cache repositories from other Azure Container Registries. This functionality is tentatively scheduled for release in late December 2023.

mac2000 commented 1 year ago

here is one more use case, where limit of 50 rules won't work

problem: it may be hard to safely cleanup container registry, and in some cases registries are filled up quickly with tens of terabytes of images

idea:

imagine following setup:

as result:

why:

while playing with Azure Container Registry and connecting it, it took only 2 days to fill 50gb of data

image

when:

seems like limit of 50 rules is real blocker here, as a workaround we probably may have many registries, but it is error prone

alternative: of course, it will be much better to have idempotent builds and image tagging strategy that will override labels, but that's not always suitable

davidkarlsen commented 1 year ago

It is annoying that you need to define a cache-rule for each and every repo - having a wildcard like docker.io/* mapping over to a prefix of docker.io/ within ACR would scale a lot better.

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

sajayantony commented 10 months ago

@JXavierMSFT do we have any updates on prefix matching.

JXavierMSFT commented 10 months ago

We have released Wildcard cache rules. You can check the docs at aka.ms/acr/cache. However, we haven't released Azure Container Registry as an upstream yet. I will update this thread as soon as we release.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

floriankoch commented 8 months ago

@JXavierMSFT anything new for caching ACR?