mirror of
https://github.com/gryf/vmstrap.git
synced 2025-12-18 20:10:28 +01:00
Added cleanup.sh
This commit is contained in:
8
cleanup.sh
Executable file
8
cleanup.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash -x
|
||||
~/devstack/unstack.sh
|
||||
for instance in `sudo virsh list --all --name`
|
||||
do sudo virsh destroy $instance
|
||||
sudo virsh undefine $instance
|
||||
done
|
||||
sudo umount `mount | grep kube | cut -d " " -f 3`
|
||||
sudo rm -rf /var/lib/docker && sudo rm -rf /opt/stack/data
|
||||
Reference in New Issue
Block a user