- Stop all containers:
docker ps -aq | xargs docker stop
- Remove all containers:
docker ps -aq | xargs docker rm
- Remove all images:
docker images -aq | xargs docker rmi
- Remove all networks:
docker network ls -q | xargs docker network rm
- Remove all volumes:
docker volume ls -q | xargs docker volume rm
- Remove all stopped containers, networks, and volumes:
docker system prune
-
-
Save naartjie/922da69aee8c62d99eee1a70e723f1f0 to your computer and use it in GitHub Desktop.
clean up docker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment