Giter VIP home page Giter VIP logo

Comments (6)

thekk1 avatar thekk1 commented on May 30, 2024 1

I already managed that. sorry for this "stupid" question.

from docker-registry-browser.

thekk1 avatar thekk1 commented on May 30, 2024

Wouldn't it be nice if manifests/images without any tags are hidden on the WebGUI?
Currently the only way to remove empty manifests is to delete the folders in the repository's filesystem.
On redis it would be more complicated...

from docker-registry-browser.

klausmeyer avatar klausmeyer commented on May 30, 2024

I agree it would be much nicer to don't show them.

The issue currently is that I don't have the information if an image has any tags in the API call I am doing on the list view. In order to implement that I'd have to do an additional call per image in the list which isn't the best idea.

from docker-registry-browser.

klausmeyer avatar klausmeyer commented on May 30, 2024

A workaround I was using in our private registry was running the garbage collection in a cronjob. This of course did not solve the "empty" images shown in the UI ad-hoc but at least after the next GC run they were gone.

See: https://docs.docker.com/registry/garbage-collection/

from docker-registry-browser.

thekk1 avatar thekk1 commented on May 30, 2024

Sure, GC is a must have. But handling the view of empty images/manifests should be an option.
Why isn't it a good idea to do additional call for every image? Its just a json what you're asking for. If it's empty, no tags... Sure, in case of a slow repo, it makes your app slower but much more comfortable.

As I said, you can make it optional to let the useres do the choice.

from docker-registry-browser.

klausmeyer avatar klausmeyer commented on May 30, 2024

Why isn't it a good idea to do additional call for every image? Its just a json what you're asking for.

I'm just thinking about a registry with a lot of images. Currently the registry browser will show up to 100 of them per page. So in this case we'd have 101 API calls to just show one single list of images. Those API calls could be partially parallelized I assume but still this could take (to) long to render the page - maybe something one could test to see if it's just a theoretical issue.

Another issue is the mentioned pagination. If we filter out empty images on application side instead of having the API to exclude them we can't have a predictable behavior about how many images are shown on one "page".

In general I'd love to give it a try and implement it to see how it behaves but it's always a concern of time. I'll keep this as a feature request around and if someone would like to help I'm happy to accept pull requests.

from docker-registry-browser.

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.