Last active
January 4, 2017 21:45
-
-
Save steenzout/a2f70e2573be4e9ef3e6644eff1619b6 to your computer and use it in GitHub Desktop.
Bash script to wipe out all docker containers, volumes and network.
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 | |
docker stop $(docker ps -a -q) | |
docker rm -f $(docker ps -a -q) | |
docker volume prune -f | |
docker network prune -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it works for me on: