Update node_reset.sh

This commit is contained in:
Torma Kristóf 2019-03-16 16:47:58 +01:00 committed by GitHub
parent d0e19aac90
commit da3d2d3807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,6 @@
#!/bin/bash
kubeadm reset --force
docker system prune -a
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -a -q)
#iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X
iptables -F && iptables -t nat -F && iptables -t mangle -F && \
iptables -X && iptables -t nat -X && iptables -t mangle -X
service docker restart