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 -f
Code language: Bash (bash)
Remove all including Build Cache:
docker system prune --all --volumes
Code language: Bash (bash)
Reference: https://docs.docker.com/config/pruning/#prune-everything
Leave a Reply