#!/bin/bash
docker rm -f $(docker ps -qa)
#docker rm -f $(docker ps -qa | grep -v f5a85eedab69)
rm -rf /var/etcd/
for m in $(tac /proc/mounts | awk '{print $2}' | grep /var/lib/kubelet); do
umount $m || true
done
rm -rf /var/lib/kubelet/
for m in $(tac /proc/mounts | awk '{print $2}' | grep /var/lib/rancher); do
umount $m || true
done
rm -rf /var/lib/rancher/
rm -rf /run/kubernetes/
docker volume rm $(docker volume ls -q)
docker ps -a
docker volume ls
网友评论