Guest User

Untitled

a guest
Feb 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while ids=$(docker image ls -q) && [[ -n "$ids" ]]; do
  4. while read -r id; do
  5. docker image rm -f "$id"
  6. done <<< "$ids"
  7. done
Add Comment
Please, Sign In to add comment