docker-ce添加國內源-阿里docker-hub鏡像

問題現象:

WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

問題解決:

開啓iptables對bridge的數據進行處理docker

cat > /etc/sysctl.d/docker.conf <<-'EOF'
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
EOFjson

systctl  --system阿里雲

sysctl -pspa

docker添加國內docker-hub源

cat >/etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://jnxt8d8b.mirror.aliyuncs.com"]
}
EOFrest

注意:aliyuncs.com是阿里的經典網路形式,能夠在公網解析,給力阿里雲!!!code

systemctl daemon-reload && systemctl restart dockerblog

[root@beng ~]# docker info |grep -i mirror
Registry Mirrors:
https://jnxt8d8b.mirror.aliyuncs.com/ip

相關文章
相關標籤/搜索