一、pull文件时访问不了外网

  • 现象:无法访问外网
[root@VM_0_17_centos ~]# ping -c 3 114.114.114.114
PING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.

--- 114.114.114.114 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2001ms
  • 解决办法:内网镜像配置
# 腾讯云内网镜像仓库(不需要公网)
cat > /etc/docker/daemon.json <<EOF
{
  "registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}
EOF

systemctl restart docker
分类: Docker

0 条评论

发表回复

您的电子邮箱地址不会被公开。