问题现象:
WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled
问题解决:
开启iptables对bridge的数据进行处理
cat > /etc/sysctl.d/docker.conf <<-'EOF'
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
EOF
sysctl --system
sysctl -p
docker添加国内docker-hub源
cat >/etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors":["https://jnxt8d8b.mirror.aliyuncs.com"]
}
EOF
注意:aliyuncs.com是阿里的经典网路形式,可以在公网解析,给力阿里云!!!
systemctl daemon-reload && systemctl restart docker
[root@beng ~]# docker info |grep -i mirror
Registry Mirrors:
https://jnxt8d8b.mirror.aliyuncs.com/