-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Provide a non-destructive way to clean up debris on the filesystem #23683
Comments
Do you have any idea how these remnants are being left behind? If you have a simple repeater to show Podman leaking, we would love to fix it. |
Hi @rhatdan! I believe the remnants are caused by container image builds that are being Dockerfile: FROM ubi8/ubi
RUN truncate -s 10G out
RUN sleep infinity Script #!/usr/bin/env bash
podman build -f Dockerfile -t podmanleaker &
sleep 10 && kill -9 $! And finally...
Does that help? Repeatedly running |
Does Could you try
|
So after trying that prune command
So
|
A friendly reminder that this issue had no activity for 30 days. |
Feature request description
Related to #3799, it looks as though
podman
leaves layers and other stuff on the filesystem. This cannot be inspected (viapodman system df
) or cleaned (viapodman system prune
). You can however see this withThe proposed solution in the aforementioned issue for tidying up inaccessible/leaked layers in
/containers/storage/
ispodman system reset
. This seems like a pretty nuclear option that will affect any podman builds in progress. This results in platforms utilisingpodman build
having to work a lot harder.Suggest potential solution
It'd be ideal if
podman system prune
could delete all these "leaked" layers that are not currently in use.The text was updated successfully, but these errors were encountered: