Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # Purging All Unused or Dangling Images, Containers, Volumes, and Networks
  2. docker system prune -a
  3.  
  4.  
  5. # Remove all images
  6. docker rmi $(docker images -a -q)
  7.  
  8.  
  9. # Remove all exited containers
  10. docker rm $(docker ps -a -f status=exited -q)
  11.  
  12.  
  13. # Stop and remove all containers
  14. docker stop $(docker ps -a -q)
  15. docker rm $(docker ps -a -q)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement