Skip to content

Hard link disappeared when built docker image  #412

Description

@lvii

After I built a docker image, docker image tar file size was more than VM's raw disk size :

# qemu-img info /var/lib/imagefactory/storage/422c0e0e-c027-4e5b-ab6f-5506b0680d25.body
image: /var/lib/imagefactory/storage/422c0e0e-c027-4e5b-ab6f-5506b0680d25.body
file format: raw
virtual size: 10G (10737418240 bytes)
disk size: 300M

# ll -s /var/lib/imagefactory/storage/cc5b5cbc-5eeb-471e-967e-c2a3a00704bb.body
555M -rw-r--r--. 1 root root 555M | 2017-11-16 03:58 | /var/lib/imagefactory/storage/cc5b5cbc-5eeb-471e-967e-c2a3a00704bb.body

I decompressed docker tar file, and I find that /usr/libexec/git-core directory occupied space :

# du -sh usr/libexec/*|sort  -h|tail
...
536K    usr/libexec/sudo
908K    usr/libexec/openssh
265M    usr/libexec/git-core

Binary files in /usr/libexec/git-core directory were almost hard link.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions