Skip to content

[Bug]: container system df omits image content blobs from image size and reclaimable bytes #1526

@realrajaryan

Description

@realrajaryan

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

Use a clean app root, pull a single-platform image, then compare system df with the image content store:

$ container image pull --platform linux/arm64 --progress plain alpine:latest
[1/2] Fetching image [0s]
[1/2] Fetching image [1s]
[1/2] Fetching image 53% (3 of 4 blobs, 2.2/4.0 MB, 8 KB/s) [2s]
[2/2] Unpacking image [2s]
[2/2] Unpacking image for platform linux/arm64/v8 [2s]
[2/2] Unpacking image for platform linux/arm64/v8 100% (514 entries, 8.3 MB) [2s]

$ container system df --format json
{
  "containers" : {
    "active" : 0,
    "reclaimable" : 0,
    "sizeInBytes" : 0,
    "total" : 0
  },
  "images" : {
    "active" : 0,
    "reclaimable" : 78729216,
    "sizeInBytes" : 78729216,
    "total" : 1
  },
  "volumes" : {
    "active" : 0,
    "reclaimable" : 0,
    "sizeInBytes" : 0,
    "total" : 0
  }
}

$ du -sk "/Users/ras/Downloads/test_container/audit_artifacts/container-issue-repros-20260511-101939/app-root/content/blobs/sha256"
4124    /Users/ras/Downloads/test_container/audit_artifacts/container-issue-repros-20260511-101939/app-root/content/blobs/sha256

Problem description

system df reports image size and reclaimable bytes without counting image content blobs. Those blobs are image-managed storage and are reclaimed during image cleanup. system df should include blob storage in image size/reclaimable bytes, or explicitly label the current value as unpacked snapshot storage only.

Environment

- OS: macOS 26.4.1 (25E253)
- Xcode: Xcode 26.4.1 (17E202)
- Container: container CLI 0.12.3 (build: release, commit: f989901)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

nextMust-have items for current and next milestonestorageissues and features associated with storage.uxUser experience features and fixes.

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions