The content of this article refers to the following articles:
Link | blogger |
---|---|
https://blog.csdn.net/u014221090/article/details/107839580 | CSDN user: caiyj374 |
https://blog.csdn.net/yjk13703623757/article/details/108105095 | CSDN user: Locutus |
If it is useful to you, it is recommended to go to the original address, like, collect and follow Sanlian. The following text:
It is recommended to use it in the test environment, and use it with caution in the production environment. At least you must master the basic knowledge of Docker when using it. I am not responsible for any problems.
docker stop $(docker ps -a -q)
docker system prune -f
docker volume rm $(docker volume ls -q)
docker rm -f $(docker ps -a -q)
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
/opt/cni \
/opt/rke \
/run/secrets/kubernetes.io \
/run/calico \
/run/flannel \
/var/lib/calico \
/var/lib/etcd \
/var/lib/cni \
/var/lib/kubelet \
/var/lib/rancher/rke/log \
/var/log/containers \
/var/log/pods \
If /var/log/pods cannot be deleted in the last step, the error is reported as the device is busy, please uninstall the mounted device first, and use the following command:
umount $(df -HT | grep '/var/lib/kubelet/pods' | awk '{print $7}')
Then re-execute the last sentence to delete the command, and then you can reinstall Rancher.