Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/bin/sh
  2. ### it will call 'inspect' on found docker volumes by default, you can delete them providing 'rm' as parameter
  3. docker_volume_action=${1:-inspect}
  4. #echo $docker_volume_action
  5. docker volume ls -qf dangling=true | xargs -r docker volume $docker_volume_action
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement