Last active
September 12, 2016 06:55
-
-
Save jarpy/816bcadd37e817935f1a42be282f737b to your computer and use it in GitHub Desktop.
Violently clean up Docker
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 containers, inluding those that are not running. | |
docker ps --quiet | xargs docker kill | |
docker ps --all --quiet | xargs docker rm | |
# Remove all images. | |
docker images --format '{{.ID}}' | xargs docker rmi --force | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment