Docker – Reffffference https://ivan.reallusiondesign.com For my personal reference purposes Fri, 27 Jan 2017 15:25:44 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 106465655 Stop and remove all docker containers and images https://ivan.reallusiondesign.com/stop-and-remove-all-docker-containers-images/ https://ivan.reallusiondesign.com/stop-and-remove-all-docker-containers-images/#disqus_thread Thu, 26 Jan 2017 17:56:04 +0000 https://ivan.reallusiondesign.com/?p=768 If you want to save some time removing all containers, you can use this two command(the first one is to stop all if there are some running):

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

You can also remove all the images with:

docker rmi -f $(docker images -q)

Be aware that the -f option will force delete even images that are being used.

]]>
https://ivan.reallusiondesign.com/stop-and-remove-all-docker-containers-images/feed/ 0 768