Docker容器无法上网问题
故障排查
临时解决
1)temporary due to your Internet Service Provider not correctly forwarding internet naming (DNS) to either its or external DNS servers
2)due to a change in your network has similarly blocked this naming - for example, new router/modem, reconfiguring a switch with a new configuration.
解决办法:
在系统中加入临时已知的dns
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
然后更新apt:
apt-get update