ARCHBEE TEMPLATES

Docker cheatsheet

4min

Delete all container created by docker-compose

$ docker rm `docker ps --no-trunc -aq

Build docker-compose without cache

$ docker-compose build --no-cache

Purge containers and unused image

$ docker ps -q -a -f status=exited | xargs -n 100 docker rm -v $ docker images -q --filter "dangling=true" | xargs -n 100 docker rmi

Clean all your docker cache ALL

$ docker rm $(docker ps -a -q) $ docker rmi $(docker images -q) $ docker volume rm $(docker volume ls |awk '{print $2}') rm -rf ~/Library/Containers/com.docker.docker/Data/*@

ο»Ώ

πŸ€”
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.

ο»Ώ