• Prune for deleting volumes.

List

Show all

$ docker volume ls

Just the IDs - using quiet.

$ docker volume ls -q

Dangling volumes

Using filter:

  • -f, --filter filter Provide filter values (e.g. ‘dangling=true’)
$ docker volume ls -qf dangling=true

Remove

$ docker volume rm $(docker volume ls -q)