SHARE
TWEET

Untitled

a guest Jul 21st, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ### List all containers (only IDs)
  2.  
  3.     docker ps -aq
  4.  
  5. ### Stop all running containers
  6.  
  7.     docker stop $(docker ps -aq)
  8.  
  9. ### Remove all containers
  10.  
  11.     docker rm $(docker ps -aq)
  12.  
  13. ### List all images
  14.  
  15.     docker image ls
  16.  
  17. ### Remove all unused images
  18.  
  19.     docker image prune -af
  20.    
  21. ### Remove all images
  22.  
  23.     docker rmi -f $(docker images -q)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top