-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add docker prune
guidance to the troubleshooting guide
#24
Comments
I suggest to clear only the oldest images:
|
@regisb @kdmccormick it appears docker uses image creation time for the I found this tinteresting tool which does the LRU part, so I am adding it to the discussion |
@ARMBouhali I followed your suggestion and started using docuum on my CI server a couple weeks ago. So far it's working great! Here's my docker-compose.yml:
This would make a great contrib plugin ;) |
Thanks, @regis. that's a very elegant solution! It never crossed my thought to use a docker container to handle docker's own problems. With this discovery, I can qualify the issue as solved. But maybe there is more to it. One of my struggles with docker is when the cache build accumulate, and there's no easy way to achieve selective pruning, and there is no clear feedback using docker image prune. Something like a tool (not necessarily a plugin) that can feed on tutor's build configuration might be the solution to achieve ideal selective pruning. That's more work to do and I'm not sure if it's worth it in the long run. |
Context
After using Tutor for a while (especially, after using different versions of it and/or using it alongside Devstack), it is common for one's Docker build cache (on Linux,
/var/lib/docker
) to become very large. Like, tens of gigabytes. After a while, this can fill up the developer's disk, causing a variety of strange system-wide problems.There is a very simple solution to this problem: pruning. In particular, it is good to run the following every month or so:
This can free up dozens of gigabytes of disk space.
Acceptance Criteria
Add this information to the troubleshooting guide in the official docs: https://docs.tutor.overhang.io/troubleshooting.html
The text was updated successfully, but these errors were encountered: