⚠️ Warning: These commands permanently delete all Docker data. Ensure you have backed up any important data before running them.
- Stop all running containers:
docker stop $(docker ps -aq)
- Remove all containers:
docker rm $(docker ps -aq)
- Remove all images:
docker rmi -f $(docker images -aq)
- Remove all volumes:
docker volume rm $(docker volume ls -q)
⚠️ For a faster, all-in-one cleanup (networks and build also): ⚠️
docker system prune -a --volumes --force