Created
April 5, 2019 18:44
-
-
Save gtalarico/96ad8f6dd91bd9f8cc4b41a2f83317f6 to your computer and use it in GitHub Desktop.
For when you docker is misbehaving
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
#!/bin/bash | |
# By Andrew Salveson | |
docker rm -v $(docker ps -a -q -f status=exited) | |
docker rmi $(docker images -f "dangling=true" -q) | |
docker volume rm $(docker volume ls -qf dangling=true) | |
cat <<EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment