New CoreOS out – list dangling volumes

A new stable version of CoreOS, the Operating System we use on our AWS instances, came out recently – v899 and docker was upgraded from v1.7 to v1.9.1. This means, it’s now much easier to find docker volumes that are no longer being used by any containers, so called “dangling” volumes:

docker volume ls --quiet --filter dangling=true

And to remove them:

docker volume rm $(docker volume ls -qf dangling=true)

or I prefer:

docker volume ls --quiet --filter "dangling=true" | xargs --no-run-if-empty docker volume rm


This is a useful tool for reclaiming disk-space – God knows we need it when using Docker and deploying multiple times per day.

Tags > ,

No Comment

Post A Comment