Last active
November 4, 2022 14:32
-
-
Save prezire/3789fab631ca5eeedd6646ee269117dd to your computer and use it in GitHub Desktop.
Docker commands
This file contains 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
Ref: | |
https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes | |
Remove all: | |
docker system prune -a | |
Images: | |
Remove all: | |
docker rmi $(docker images -a -q) | |
Containers: | |
Stop and remove: | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
Remove all stopped containers: | |
docker container rm $(docker container ls -aq) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment