Skip to content

Instantly share code, notes, and snippets.

View kairos03's full-sized avatar
🛠️
Hard working

EunSeop Shin kairos03

🛠️
Hard working
View GitHub Profile
@kairos03
kairos03 / cleanup.sh
Created June 30, 2022 07:25 — forked from superseb/cleanup.sh
Cleanup host added as custom to Rancher 2.0
#!/bin/sh
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done