Photo by Snappy Shutters on Unsplash
Programming

Docker cleanup cheat sheet

รวมคำสั่งไว้ Cleanup ที่ต้องใช้บ่อยๆ

Delete all stopped container

docker rm $(docker ps -a -q)

Delete all untagged image

docker rmi $(docker images -q -f dangling=true)

Delete ALL images

docker rmi $(docker images -q)

Photo by Snappy Shutters on Unsplash
Photo by Snappy Shutters on Unsplash

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: