Created
October 19, 2016 19:07
-
-
Save tugberkugurlu/d192bbc6830cb2e76aea65053fbb8b92 to your computer and use it in GitHub Desktop.
Docker CLI Cheatsheet
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
# List all stopped containers | |
docker ps --filter "status=exited" | |
# Remove all stopped containers | |
docker rm $(docker ps --filter "status=exited" -aq --no-trunc) | |
# Remove all unused images (http://stackoverflow.com/a/32723127) | |
docker rmi $(docker images --filter "dangling=true" -q --no-trunc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stefanprodan.com/2016/docker-windows-powershell-cheatsheet/