Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ### it will call 'inspect' on found docker volumes by default, you can delete them providing 'rm' as parameter
- docker_volume_action=${1:-inspect}
- #echo $docker_volume_action
- docker volume ls -qf dangling=true | xargs -r docker volume $docker_volume_action
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement