Advertisement
asanchez75

container

Dec 8th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. http://blog.baudson.de/blog/stop-and-remove-all-docker-containers-and-images
  2.  
  3. List all containers (only IDs)
  4.  
  5. docker ps -aq
  6. Stop all running containers
  7.  
  8. docker stop $(docker ps -aq)
  9. Remove all containers
  10.  
  11. docker rm $(docker ps -aq)
  12. Remove all images
  13.  
  14. docker rmi $(docker images -q)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement