Y
Hacker News
new
|
ask
|
show
|
jobs
by
johannes1234321
37 days ago
Prune 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.
3 comments
giobox
37 days ago
I 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/#fi...
link
Oxodao
37 days ago
I do prune all the time, but working on a lot of different projects it fills up as quickly as it empties
link
kevinmgranger
37 days ago
Any reason why those containers can't be run ephemerally?
link