Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Clean up image space #63

Closed
thyrlian opened this issue Nov 3, 2021 · 1 comment
Closed

[Enhancement] Clean up image space #63

thyrlian opened this issue Nov 3, 2021 · 1 comment
Assignees

Comments

@thyrlian
Copy link
Owner

thyrlian commented Nov 3, 2021

Description

Some spaces in the image are wasted, should be considered to free up.

Steps

Tool used: dive

dive thyrlian/android-sdk:7.1

Output

│ Image Details │

Image name: thyrlian/android-sdk:7.1
Total Image size: 1.3 GB
Potential wasted space: 7.2 MB
Image efficiency score: 99 %

Count   Total Space  Path
    3        2.2 MB  /var/cache/debconf/templates.dat
    2        1.4 MB  /var/cache/debconf/templates.dat-old
    3        693 kB  /var/log/dpkg.log
    3        667 kB  /var/lib/dpkg/status
    2        579 kB  /var/lib/dpkg/status-old
    2        530 kB  /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_InRelease
    2        228 kB  /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_focal-security_InRelease
    2        228 kB  /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal-updates_InRelease
    2        201 kB  /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal-backports_InRelease
    2        133 kB  /var/log/apt/term.log
    3         73 kB  /var/log/apt/history.log
    2         59 kB  /var/log/lastlog
    3         53 kB  /etc/ld.so.cache
    3         45 kB  /var/cache/debconf/config.dat
    3         42 kB  /var/cache/ldconfig/aux-cache
    2         40 kB  /var/cache/debconf/config.dat-old
    3         35 kB  /var/log/alternatives.log
    3         30 kB  /var/log/apt/eipp.log.xz
    3         23 kB  /var/lib/apt/extended_states
    2        6.5 kB  /var/log/faillog
    2        3.5 kB  /opt/license_accepter.sh
    2        1.9 kB  /etc/passwd
    2        1.0 kB  /etc/shadow
    2         903 B  /etc/group
    2         756 B  /etc/gshadow
    2         661 B  /var/lib/dpkg/triggers/File
    2         539 B  /root/.wget-hsts
    2          55 B  /var/lib/ucf/hashfile
    2          38 B  /var/lib/ucf/registry
    2           0 B  /tmp
    2           0 B  /var/lib/apt/lists/lock
    2           0 B  /var/lib/apt/lists/auxfiles
    3           0 B  /var/lib/dpkg/lock-frontend
    3           0 B  /var/lib/dpkg/lock
    2           0 B  /var/lib/dpkg/triggers/Unincorp
    3           0 B  /var/lib/dpkg/updates
    2           0 B  /var/lib/apt/lists/partial
    3           0 B  /var/cache/debconf/passwords.dat
    2           0 B  /etc/.pwd.lock
    3           0 B  /var/cache/apt/archives/partial
    3           0 B  /var/cache/apt/archives/lock
    3           0 B  /var/lib/dpkg/triggers/Lock
@thyrlian thyrlian self-assigned this Nov 3, 2021
@thyrlian
Copy link
Owner Author

thyrlian commented Nov 3, 2021

As the potential wasted space is only 7.2 MB, and the image efficiency score is quite well: 99 %, I decide to not take any action (now).

But in the report, /opt/license_accepter.sh is a false alarm.

@thyrlian thyrlian closed this as completed Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant