Last active
January 12, 2017 22:43
-
-
Save JKrag/9e1cdc0f17e51aea74c2c48c93aaecaa to your computer and use it in GitHub Desktop.
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
echo "--- Containers ------------------------------------------------------" | |
if [[ $(hyper ps -aq) ]]; then | |
echo "Deleting containers:" | |
hyper rm -v -f `hyper ps -aq` | |
else | |
echo "no containers found" | |
fi | |
echo "--- Volumes ---------------------------------------------------------" | |
if [[ $(hyper volume ls -q) ]]; then | |
echo "Deleting Volumes:" | |
hyper volume rm `hyper volume ls -q` | |
else | |
echo "no volumes found" | |
fi | |
echo "--- Images ----------------------------------------------------------" | |
if [[ $(hyper images -q) ]]; then | |
echo "Deleting Images:" | |
hyper rmi `hyper images -q` | |
else | |
echo "no images found" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment