How to remove dangling docker data volumes

Quick and easy way to remove dangling data volumes:

1. Check out all of your dangling data volumes

$docker volume ls -f dangling=true

2. Now remove all of them

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

3. Check it again, and you will see all the danling docker data volumes have been removed completely

Leave a Comment

Your email address will not be published. Required fields are marked *