1. 设置net.bridge.bridge-nf-call-iptables=1
sudo vi /etc/sysctl.conf
2. 加上配置
net.bridge.bridge-nf-call-iptables=1
3. 保存配置并生效
sudo sysctl -p
4. 安装rancher
docker run -d --restart=unless-stopped
-p 80:80 -p 443:443
--privileged
rancher/rancher:stable