Giter Club home page Giter Club logo

Comments (4)

mkuchin avatar mkuchin commented on June 2, 2024 1

Can you check if problem fixed in latest version?

from docker-registry-web.

madeddie avatar madeddie commented on June 2, 2024

My Java (and especially Groovy) is really weak, but, the tags list view determines the blob size(s) with:

restService.headLength("${name}/blobs/${digest}") ?: 0

the image details view uses:

entry.Size ?: restService.headLength("${name}/blobs/${blobs[i]}")
(entry being an entry of the list of history.v1Compatibility)

Meaning that if the headLength call fails for whatever reason; one returns 0, but the other uses the Size field from the history.v1Compatibility json strings. I have a feeling it would be prudent to make both use the same method, either fixing a possible problem in a comparable fashion in one or for forcing a possible bug in the other.

from docker-registry-web.

mkuchin avatar mkuchin commented on June 2, 2024

Thank for bug report, @madeddie.
The problem is entry.Size used only for compatibility with images created in docker engine version < 1.10. It seems working in you case but should no longer work with freshly generated images.
What registry storage backend are you using?

from docker-registry-web.

madeddie avatar madeddie commented on June 2, 2024

Yes, the sizes are there now. The loading of the tags list is somewhat slower, so I assume it actually does something it didn't do before :)

We're using the s3 backend.
We host quite some older images from around docker engine 1.6, so that would explain why the v1comp stuff still worked :)

from docker-registry-web.

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.