Completely Cleanup Docker

Stop all containers:

docker stop $(docker ps -aq)Code language: Bash (bash)

One by One Prune:

docker container prune -f
docker network prune -f
docker volume prune -f
docker image prune --all -fCode language: Bash (bash)

Remove all including Build Cache:

docker system prune --all --volumesCode language: Bash (bash)

Reference: https://docs.docker.com/config/pruning/#prune-everything


Posted

in

by

Tags:

Comments

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.