Skip to content

Instantly share code, notes, and snippets.

@mrunalp
Created January 17, 2017 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrunalp/f31e5a9f8c094ca53d7523a2637cc249 to your computer and use it in GitHub Desktop.
Save mrunalp/f31e5a9f8c094ca53d7523a2637cc249 to your computer and use it in GitHub Desktop.
Cleanup cri-o test env
#!/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