Random Stuff About Stuff

Docker Dangling Volumes

April 06, 2016

When trying out my own docker image I was creating and deleting it. But I wasn’t deleting it with the -v option so I ended up with alot of ‘dangling’ volumes i.e. volumes that were created for a container but that container is now gone.

To see if you have them and find them run

docker volume ls -f dangling=true

If they are there and you want to remove them you can use

docker volume rm <VOLUME NAME>

Written by David Kerwick who lives and works Dublin as a Java Technical Lead.