-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[question] buildctl prune seems to leak some disk space #1198
Comments
Can you put together a reproducer that shows this behavior? It is possible this is addressed with #1176 but would need reproducer to be sure. |
My mistake. |
@tonistiigi
as well as with I mean, when I later do At the same time, this does not leak:
No (dangling) snapshots left in this case. This occures with any dockerfile and context. |
Looks like it was fixed with one of latest commits. |
We're also seeing this behavior as well even after restarting the daemon on v0.6.3. Happy to provide more information but it's almost exactly the situation described above:
It does drop about 9GB asynchronously after running the prune cmd, but it seems to get stuck on something and stops pruning. After running du on the fs, it looks like about 22GB of that usage is Seems related to #1174 as well but they solved it by using the For context we're running the daemon(s) in a statefulset in kubernetes with rook managed rbd mounts for Curious if this is expected behavior and we just need to clean that up out of band? or if we're missing something? |
Quick follow up, we've started using the "master" image tag from dockerhub and the issue appears to be resolved so it looks like this is patched somewhere between 0.6.3 and master. Any chance there will be a new release in the near future? Thanks |
This is fixed in 0.7.x afaict. I had a similar issue open (#1385). |
Hello,
I'm having some trouble getting
buildctl prune --all --keep-storage N
to actually use aroundN
megs of space build after build,runc-overlayfs
usually just grows indefinitely.I also understand that the way I use buildkit is propably not the way it's meant to be used. It looks like this:
it runs inside docker container with a volume mounted like so:
the script it runs (actually it's a snippet from a template for that script):
After some iterations cache grows far beyond 8 gigabytes.
runc-overlayfs
took more than 20 gigabytes when I last checked. The output ofprune
command says something likeso I assume it does collect something.
But if I manually run
it reclaims some space, and I expect it to clean all snapshots and content, but
buildctl du
always (well, after some builds) show far less disk usage, than it actually is.What am I missing? I also tried to
sync
afterpkill buildkitd
and wait before exit, as it seemed like some.db
files weren't in sync, but apparently this is not the case.Thank you!
The text was updated successfully, but these errors were encountered: