Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: podman auto-update --prune #10190

Closed
vrothberg opened this issue May 3, 2021 · 1 comment · Fixed by #10341
Closed

feature: podman auto-update --prune #10190

vrothberg opened this issue May 3, 2021 · 1 comment · Fixed by #10341
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@vrothberg
Copy link
Member

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind feature

Description

podman auto-update should have a way to clean up dangling images. As mentioned on Twitter [1], auto updates may contribute to the disk running out of space over time.

I am not yet entirely sure whether there should be a --prune option or if we should extend the auto-update systemd unit to run podman image prune. At the moment, I have a preference towards extending the systemd unit as the design seems cleaner.

[1] https://twitter.com/r_isc_y/status/1388981737011793921

@openshift-ci-robot openshift-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label May 3, 2021
@vrothberg
Copy link
Member Author

@mrguitar, I think that's a rather useful feature on the Edge. What's your take on it?

vrothberg added a commit to vrothberg/libpod that referenced this issue May 14, 2021
Extend the systemd auto-update service to prune images after an update
has run.  As reported by a user [1], auto updates can over time cause
the disk to run out of space.  With Edge being a target use case, we
need to make sure that systems can run without much supervision, so
let's make sure to run `podman image prune` to clean up dangling images.

[1] https://twitter.com/r_isc_y/status/1388981737011793921

Fixes: containers#10190
Signed-off-by: Valentin Rothberg <[email protected]>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants