Giter VIP home page Giter VIP logo

Comments (8)

yosifkit avatar yosifkit commented on September 22, 2024

This actually a bug with docker build, specifically ADD in the dockerfile. The auto extracting of a tar using ADD does not seem to preserve hard links, so there is much duplication. I suggest opening an issue on https://github.com/docker/docker/issues.

From the small openSUSE, while the larger only showed 1 in the hard link count column:

# ls -la usr/lib/locale/zu_ZA.utf8
total 1504
drwxr-xr-x   1 root root     250 Jul 30 19:40 .
drwxr-xr-x   1 root root    6692 Jul 30 19:40 ..
-rw-r--r--   1 root root     158 May  7 14:04 LC_ADDRESS
-rw-r--r-- 162 root root 1243766 May  7 13:57 LC_COLLATE
-rw-r--r-- 190 root root  256356 May  7 13:57 LC_CTYPE
-rw-r--r--   1 root root     430 May  7 14:04 LC_IDENTIFICATION
-rw-r--r-- 268 root root      23 May  7 13:57 LC_MEASUREMENT
drwxr-xr-x   1 root root      30 Jul 30 19:40 LC_MESSAGES
-rw-r--r--  11 root root     286 May  7 13:57 LC_MONETARY
-rw-r--r--   1 root root      88 May  7 14:04 LC_NAME
-rw-r--r--  72 root root      54 May  7 13:57 LC_NUMERIC
-rw-r--r-- 250 root root      34 May  7 13:57 LC_PAPER
-rw-r--r--  11 root root      58 May  7 13:57 LC_TELEPHONE
-rw-r--r--   1 root root    2594 May  7 14:04 LC_TIME

from official-images.

tianon avatar tianon commented on September 22, 2024

@flavio you should probably check out moby/moby#8046 - it looks like it's actually a fix for this exact problem 😄

from official-images.

unclejack avatar unclejack commented on September 22, 2024

@tianon This problem has been fixed by moby/moby#8046 which has just been merged.

from official-images.

flavio avatar flavio commented on September 22, 2024

Can you please trigger a rebuild of the openSUSE image to take advantage of the bugfix?

from official-images.

tianon avatar tianon commented on September 22, 2024

The fix hasn't hit a release yet, so we unfortunately have to wait for that
before this would be worthwhile to rebuild. :(

from official-images.

flavio avatar flavio commented on September 22, 2024

Is the fix deployed now?

from official-images.

tianon avatar tianon commented on September 22, 2024

The half-size versions are pushing now:

# docker images opensuse
REPOSITORY          TAG             IMAGE ID            CREATED              VIRTUAL SIZE
opensuse            13.2            aaaa26db873b        About a minute ago   267 MB
opensuse            harlequin       aaaa26db873b        About a minute ago   267 MB
opensuse            latest          aaaa26db873b        About a minute ago   267 MB
opensuse            13.1            3d003d78b976        About a minute ago   258.4 MB
opensuse            bottle          3d003d78b976        About a minute ago   258.4 MB

🎈

from official-images.

flavio avatar flavio commented on September 22, 2024

Great, thanks for your help!

from official-images.

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.