Last active
August 6, 2021 18:40
-
-
Save oguzkaganeren/73c9d20037d2d3c7c8a75531e6f2dca8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Stop all containers | |
docker stop `docker ps -qa` | |
#### Remove all containers | |
docker rm `docker ps -qa` | |
#### Remove all images | |
docker rmi -f `docker images -qa` | |
#### Remove all volumes | |
docker volume rm \$(docker volume ls -qf dangling="true") | |
#### Remove all networks | |
docker network rm `docker network ls -q` | |
remove logs | |
sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment