Code Monkey home page Code Monkey logo

Comments (2)

mac2000 avatar mac2000 commented on July 18, 2024

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:

  • we have 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 up
  • we have cache.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 it

as result:

  • it should be safe to remove images older than X months from main.azurecr.io
  • it is still hard to cleanup cache.azurecr.io but it will be much smaller, because it holds only images used at least once
  • cache.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

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

from acr.

davidkarlsen avatar davidkarlsen commented on July 18, 2024

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.

from acr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.