Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
johannes1234321
· 6mo ago · 0 comments
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.
Comments
[–]
giobox
6mo 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...
[–]
Oxodao
6mo ago
I do prune all the time, but working on a lot of different projects it fills up as quickly as it empties
[–]
kevinmgranger
6mo ago
Any reason why those containers can't be run ephemerally?