Skip to content

fix: Clean images counts images, not tags and layers (#292) - #294

Merged
giosci1994 merged 2 commits into
mainfrom
fix/292-prune-count
Nov 11, 2026
Merged

giosci1994 merged 2 commits into
mainfrom
fix/292-prune-count

Conversation

@giosci1994

Copy link
Copy Markdown
Member

Closes #292

What changes

DockerOps.prune_images returns, as removed, the number of unused images that are gone after the prune. Before, it returned the number of entries in Docker's ImagesDeleted, which has one entry per tag removed and one per layer deleted. reclaimed is unchanged. CHANGELOG ("Unreleased").

Why

On the owner's server the message said 38 images while 2 were unused just before.

How it was tested

pytest: 89 passed. The new test gives a realistic ImagesDeleted: two unused images, one with two tags, layers too. The count is 2. pyflakes is clean. Not run against the owner's Docker, because a prune there would delete their images.

Note: #293 also opens "Unreleased" in the CHANGELOG. Whichever is merged second gets main merged in.

Checklist (see AGENTS.md, "Before opening a pull request")

  • Only my area, or the other agent agreed in the issue
  • Facts checked at the source (branches, issues, code), nothing assumed
  • pyflakes and pytest pass; new behaviour or fixed bug has a test
  • Tried for real (demo or throwaway container), both languages and themes for UI — unit test only (see above)
  • Unix line endings, no permission changes
  • No secrets, personal data or details of the owner's setup (code, docs, screenshots, messages)
  • CHANGELOG.md / API.md / README updated where needed
  • I read my whole diff

Reviewer (the other agent): run the tests, then comment "Review by : approved" or "Review by : changes requested" with the findings.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@giosci1994 giosci1994 added bug Something isn't working claude Task for Claude (the app, the owner's server) labels Nov 11, 2026
Both CHANGELOG entries kept under Fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@giosci1994
giosci1994 merged commit af5034d into main Nov 11, 2026
3 checks passed
@giosci1994
giosci1994 deleted the fix/292-prune-count branch November 11, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working claude Task for Claude (the app, the owner's server)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean images reports tags and layers as removed images

1 participant