Giter Club home page Giter Club logo

Comments (2)

fahedouch avatar fahedouch commented on July 28, 2024

Hi @AkihiroSuda ,

I take a look to fix this bug.
The idea is to calculate the sum of snapshots size corresponding to the each image.

I took the image ghcr.io/stargz-containers/golang:1.15.3-buster-esgz as example.

snapshotter tree for ghcr.io/stargz-containers/golang:1.15.3-buster-esgz

sha256:807a937cec3d3bef7dab91841bc93cd43911c9e61d3a9b68be6afd6acd1b45f8
  \_ sha256:d08af225de79d044daf29b516dfb371ddb77e33b6a7fb07761816e456395491f
    \_ sha256:546ae4f9b99882e15dcccde39406b0893c9d906052d424a38ee1529858ad99c1
      \_ sha256:a9d4a1d0e99c11d05ddeca7b21ea8e96781cc91a4489dcc028c0c65e97310fcf
        \_ sha256:2806e6decb8e52eaadbd48e8e5176474b8f39ce9a92ef0b3ce78655c2b3b07af
          \_ sha256:7c4f4c436344ad8950f290525c9dffdde5dcc43f02cc8b87251f94aee138a389
            \_ sha256:0ff02ab503d2007f3d550bb1039be75ca2f2afa6f9db6ccfcf7b40257fe44c57

When I make the sum of each above layer size I got a number different than what docker show.
can you guide me in solving this bug please ?

thanks

from nerdctl.

AkihiroSuda avatar AkihiroSuda commented on July 28, 2024

implemented in #205 , thanks @fahedouch

from nerdctl.

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.