4 ms·
> https://docs.docker.com/reference/cli/docker/system/prune/ https://docs.docker.com/reference/cli/docker/system/prune/ Just in case - I'm always amazed how ma
by giobox 5mo ago
> https://docs.docker.com/reference/cli/docker/system/prune/ https://docs.docker.com/reference/cli/docker/system/prune/
Just in case - I'm always amazed how many Docker users don't know about the prune command for cleaning up the caches and deleting unused container images and just slowly let their docker image cache eat their disk.
- johannes1234321 5mo agoPrune is nice, but if you have a bunch of containers which run shirt time for a build step or similar prune would collect those, too. A filter "last used a few months ago" would be useful.
- deleted 5mo ago[deleted]
- giobox 5mo agoI think you can filter on last created, but agree last used would be helpful: docker image prune -a --filter "until=24h" > https://docs.docker.com/reference/cli/docker/image/prune/#filter https://docs.docker.com/reference/cli/docker/image/prune/#fi...
- kevinmgranger 5mo agoAny reason why those containers can't be run ephemerally?
- Oxodao 5mo agoI do prune all the time, but working on a lot of different projects it fills up as quickly as it empties