Skip to content

Instantly share code, notes, and snippets.

@scollier
Last active July 3, 2018 01:07
Show Gist options
  • Save scollier/8f231985cec7d76d42e954f1194573bf to your computer and use it in GitHub Desktop.
Save scollier/8f231985cec7d76d42e954f1194573bf to your computer and use it in GitHub Desktop.
#!/bin/bash -x
OC_DIR=/root/openshift.local.clusterup
if [ -d $OC_DIR ];
then
oc cluster down
for i in `mount | grep -i openshift | awk '{ print $3 }'`; do
umount $i;
done
rm -rf $OC_DIR
docker rmi --force $(docker images -q)
else
echo "System is clean."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment