1、docker部署rancher2.6.4提示rancher must be ran with the --privileged flag when running outside of kubernetes
解决方法:sudo docker run --privileged -d --restart=unless-stopped -p 9080:80 -p 9443:443 --name rancher rancher/rancher 改为此命令即可
2、rancher新增work,etcd和control提示etcd出错或者其他错误,若服务器之前安装过rancher,请执行一下操作后,重新部署即可
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 \
/var/run/calico