rancher 删除节点脚本

Rancher 1.6 删除节点

systemctl stop ntpd
docker rm -f $(docker ps -a -q)
systemctl start ntpd
iptables -L
iptables -F
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
systemctl stop docker
rm -rf /var/lib/docker
rm -rf /var/lib/rancher/state
lvremove /dev/docker/thinpool 
vgremove docker
systemctl start docker
journalctl -udocker -l