|
|
|
|
|
by andmarios
3432 days ago
|
|
But the thing people complain most isn't because they want to delete everything but because they need docker rm, xargs and complex bash foo to delete the containers and images they don't need. For example I want to delete all old and all untagged versions of an image. I want to delete all stopped containers that use a specific image, or that were created more than two weeks ago. I want to delete all images starting with test. Nuke everything? Not so much and to be honest this would be the easiest even with xargs and docker rm. |
|
`docker rm $(docker ps -q --filter blash)`
But agree, `prune` is currently sledge hammer and needs some refinement. It's not about not being well thought out, it's about getting something out there that can be built on top of.