Skip to content

Conversation

@Bortnyak
Copy link
Contributor

@Bortnyak Bortnyak commented Dec 24, 2025

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

#709

Previously, container image list -v only showed compressed blob size. Now it shows:
Snapshot size (unpacked) when available
Compressed blob size as fallback when image hasn't been run yet

This better reflects actual storage usage and matches Docker's behavior of showing unpacked size.
Tests use >= comparisons because filesystems allocate space in fixed blocks (4KB on macOS), making exact byte counts unreliable.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

p.s.: if this doesn't match with the maintainers' vision of how image size should be represented, feel free to close this PR :)

@Bortnyak
Copy link
Contributor Author

Hey @dcantah, take a look at this PR please.

@theetherGit
Copy link

@Bortnyak Does this PR fixes #860 too?

@Bortnyak
Copy link
Contributor Author

Bortnyak commented Dec 30, 2025

@Bortnyak Does this PR fixes #860 too?

No, but if the current one will be accepted, then the pr should be tweaked.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants