danielwertheim

danielwertheim


notes from a passionate developer

Share


Sections


Tags


Disclaimer

This is a personal blog. The opinions expressed here represent my own and not those of my employer, nor current or previous. All content is published "as is", without warranty of any kind and I don't take any responsibility and can't be liable for any claims, damages or other liabilities that might be caused by the content.

Docker - clean up dangling volumes

Was fiddling a lot a few days ago with many different Docker containers and mounted volumes. Afterwards I found lots of dangling volumes. I got curious on how to clean this mess up and found a solution that worked for me (use at own risk).

docker volume rm $(docker volume ls -q --filter dangling=true)

You could of course run the inner part to just list the dangling volumes and not remove them:

docker volume ls -q --filter dangling=true

//Daniel

View Comments