Open JXavierMSFT opened 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:
main.azurecr.io
where each and every image published, it has quadrillion of images and weights tens of terabytes, it is hard to clean it upcache.azurecr.io
side by side, configured as read only cache proxy against main.azurecr.io
, all our Kubernetes clusters and other docker related services are talking to itas result:
main.azurecr.io
cache.azurecr.io
but it will be much smaller, because it holds only images used at least oncecache.azurecr.io
may be used to bypass limits from docker, quaye, etc.why:
while playing with Azure Container Registry and connecting it, it took only 2 days to fill 50gb of data
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
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.
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.
@JXavierMSFT do we have any updates on prefix matching.
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.
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.
@JXavierMSFT anything new for caching ACR?
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.