Skip to content

Conversation

@realrajaryan
Copy link
Contributor

Type of Change

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

Motivation and Context

Previously container image prune called ImageStore.prune() (renamed to cleanupOrphanedBlobs() in cz 0.15.0) which only removed orphaned content blobs and never actually removed images.

This PR fixes that behavior so container image prune removes dangling images by default, and with -a removes all unused images, not just dangling ones.

Testing

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

@realrajaryan realrajaryan force-pushed the users/realrajaryan/image-prune branch from 9585307 to df9fafa Compare November 20, 2025 23:59
@github-actions github-actions bot added the cli label Nov 20, 2025
@realrajaryan realrajaryan requested a review from dcantah November 21, 2025 06:51
@katiewasnothere katiewasnothere merged commit 1c0e988 into apple:main Nov 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants