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

#706

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 :)

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.

1 participant