Created
January 17, 2017 21:28
-
-
Save mrunalp/f31e5a9f8c094ca53d7523a2637cc249 to your computer and use it in GitHub Desktop.
Cleanup cri-o test env
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 -x | |
runc list | awk '{print $1}' | grep -v ID | xargs runc delete -f | |
mount | grep shm | grep /tmp/tmp | awk '{print $3}' | xargs umount | |
mount | grep devicemapper | grep /tmp/tmp | awk '{print $3}' | xargs umount | |
rm -rf /tmp/tmp.* | |
mount | grep shm | grep /var/lib/ocid | awk '{print $3}' | xargs umount | |
mount | grep devicemapper | grep /var/lib/ocid | awk '{print $3}' | xargs umount | |
rm -rf /var/lib/ocid | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment