仅作为记录。
主机能执行wget https://raw.githubusercontent.com/......相关命令,但是docker容器中不行。
网上查了一堆说需要修改docker容器中的dns,有点难,放弃。
简单方式:加上代理网址。
我是在我的Dockerfile文件中,修改相关的github访问。
原来:
wget https://raw.githubusercontent.com/
现在:
wget https://ghproxy.com/https://raw.githubusercontent.com/
也就是添加了:
https://ghproxy.com/
https://ghproxy.com/
这个代理网址很好用,记住!