Skip to content

Conversation

rical
Copy link
Contributor

@rical rical commented Aug 19, 2025

Description

Previously, upgrading Podman containers with the same tag left behind dangling images, causing overlay storage to grow and fill disk space.

This change ensures dangling images are cleaned up using podman image prune. The command is run without -a, so only unreferenced images are removed. This provides safe cleanup while preventing unnecessary overlay growth.

Fixes #1098

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

@rical rical force-pushed the prune-dangling-containers branch from 07780f0 to a3971a3 Compare August 19, 2025 10:17
Previously, upgrading Podman containers with the same tag left
behind dangling images, causing overlay storage to grow and fill
disk space.

This change ensures dangling images are cleaned up using
podman image prune. The command is run without -a, so only
unreferenced images are removed. This provides safe cleanup while
preventing unnecessary overlay growth.

Fixes #1098

Signed-off-by: Richard Alpe <[email protected]>
@rical rical force-pushed the prune-dangling-containers branch from a3971a3 to bb19d06 Compare August 19, 2025 11:22
Copy link
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@troglobit troglobit merged commit a7d91b4 into main Aug 20, 2025
6 checks passed
@troglobit troglobit deleted the prune-dangling-containers branch August 20, 2025 15:30
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.

Container upgrade unexpectedly consumes storage space
2 participants