Guest User

Untitled

a guest
Oct 21st, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. docker stop $(docker ps -aq)
  4.  
  5. # docker container prune # Remove all stopped containers
  6. # docker volume prune # Remove all unused volumes
  7. # docker image prune # Remove unused images
  8. # docker system prune # All of the above, in this order: containers, volumes, images
  9. echo y | docker system prune
Add Comment
Please, Sign In to add comment