-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Containerd snapshotter saves layers that can't be cleared through docker commands #5315
Comments
This probably should be opened in the https://github.com/moby/moby/ issue tracker instead, as this is not an issue with the daemon, not the I see you're running docker 24.0, which is no longer maintained; are you still able to reproduce this on the current version (v27.x)? Can you also post the full output of |
Thanks for the report! Indeed, we don't prune the unfinished ingest data. I don't think they're handled by the containerd's GC either.. |
Thanks and apologies for putting this on the wrong repo. The issue was on a work machine, but I was able to reproduce this on 26.0.1 on my local. docker version:
docker info:
|
Description
I have the following enabled on my machine:
If I do a pull and cancel it part way through it will save the layers.
If I never complete this pull the data will persist under
/contianerd/io.containerd.snapshotter.v1.overlayfs
and/containerd/io.containerd.content.v1.content
Running commands like
docker system prune -a
ordocker image prune -a
do not work for removing this data and there doesn't seem to be any way to manually trigger garbage collection of these files.Reproduce
docker system df
docker pull <any_image>
docker system df
that the usage has increased.Expected behavior
I would expect
docker system prune
ordocker image prune
to do some garbage collection on layers that were saved as a result of the snapshotter in the same way it would clean dangling images.docker version
docker info
Client: Version: 24.0.6 Context: default Debug Mode: false Plugins: compose: Docker Compose (Docker Inc.) Version: v2.27.0 Path: /usr/lib/docker/cli-plugins/docker-compose
Additional Info
No response
The text was updated successfully, but these errors were encountered: