If you've been using DDEV for a while (like me!) then you've probably run into the issue of your Docker disk space allocation getting full. I use Rancher Desktop and more than a few times I've received warnings that more than 95% of the 100GB I have allocated is full.
Being a bit naive, I normally react by backing up a few projects I'm not regularly using and then doing a ddev delete on them.
The most recent time, however, I decided to take a different approach. At the time, I didn't think I had all that many active DDEV projects (relative to my normal situation) so I did a little digging and learned that Mutagen (included by default with DDEV) cache files can take up quite a bit of space.
So, instead of using ddev delete on a bunch of projects, I used:
ddev mutagen reseton four of my most recently used projects and the issue went away without me having to delete any of my DDEV projects.
In a conversation with Randy Fay, one of the maintainers of the DDEV project, he mentioned that he normally uses ddev delete images to reclaim Docker disk space. This command removes Docker images that DDEV has previously downloaded and is also non-destructive.
I initially didn’t think there could be many folks with this issue (since I tend to have 30-ish DDEV projects configured at any given time for clients, teaching, and open-source contribution,) but in the last couple of months several people have asked me about it, so I thought I would share for any DDEV users who might benefit.
AI was not used in the authoring of this quicktip.
Add new comment