Skip to content

Instantly share code, notes, and snippets.

@ilackarms
Created June 14, 2017 19:04
Show Gist options
  • Save ilackarms/6c595600dc93efe454aad41fb5f2e038 to your computer and use it in GitHub Desktop.
Save ilackarms/6c595600dc93efe454aad41fb5f2e038 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -x
sudo pkill -x openshift
docker ps | awk 'index($NF,"k8s_")==1 { print $1 }' | xargs -l -r docker stop
mount | grep "openshift.local.volumes" | awk '{ print $3}' | xargs -l -r sudo umount
sudo rm -rf openshift.local.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment