Clean Rancher agent after instal
作者:
Shaman | 来源:发表于
2017-02-07 17:29 被阅读27次#!/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
本文标题:Clean Rancher agent after instal
本文链接:https://www.haomeiwen.com/subject/utjmittx.html
网友评论