Created
September 4, 2019 14:06
-
-
Save ftfarias/9c7a36f564c46a6d12bc6db06211f211 to your computer and use it in GitHub Desktop.
Docker / Kubernets cheat sheet
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
# Purging All Unused or Dangling Images, Containers, Volumes, and Networks | |
docker system prune -a | |
# Remove all images | |
docker rmi $(docker images -a -q) | |
# Remove all exited containers | |
docker rm $(docker ps -a -f status=exited -q) | |
# Stop and remove all containers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment