Skip to content

[Bug]: container image prune doesn't remove images, only orphaned blobs #901

@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

container image prune command claims to remove "unreferenced and dangling images" but actually only removes orphaned blobs from the content store. No complete images are ever deleted, even when there are many unused images consuming disk space. This is because the underlying ImageStore.prune() method doesn't support filtering by container references (see apple/containerization#417).

We should add support for removing unreferenced images, and add -a/--all flag to remove all unreferenced images (not just dangling ones).

Code of Conduct

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

Metadata

Metadata

Assignees

Labels

storageissues and features associated with storage.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions