Last active
September 1, 2016 10:09
-
-
Save dustinmoris/727329466e5b8e224c55737d35434a2b to your computer and use it in GitHub Desktop.
Useful 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
# Remove all exited Docker containers with one line | |
docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs docker rm | |
# Remove all images | |
docker images -q | xargs docker rmi --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment