Docker - remove all images, remove all containers


/ Published in: Bash
Save to your folder(s)

Remove all stopped containers.
Remove all untagged images


Copy this code and paste it in your HTML
  1. docker rm $(docker ps -a -q)
  2.  
  3. docker rmi $(docker images -q --filter "dangling=true")

URL: http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.