-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dockerfile编译不通过,提示错误 #1
Comments
|
刚才编译了一次测试是 OK 的,运行时如下:
你的问题应该是网络问题,你在使用时对终端进行了代理吗?alpine 的包可能被墙了的,在终端尝试访问
尝试全局翻墙后重试,确保你的网路国际出口正常。 |
@springjk 刚刚试了一下 还是这样错误 我curl http://dl-4.alpinelinux.org/alpine/这个和你显示的一样,也开启了全局代理,另外我curl http://dl-cdn.alpinelinux.org/alpine/ 也是没有问题的 |
另外mac下 docker那个工具是不是要设置代理 |
现在好了,可以创建了,就是遇到另一个问题,docker build过程很缓慢,尤其是到了(16/38) Installing gcc (5.3.0-r0)这一步骤,可能是和网络有关系,请问这个可以在dockerfile怎么更改为国内的源么 |
你这里确实是网络问题,解决这个的最好办法是翻墙而不是设置国内源,国内的源因为使用人数非常多以及都是一些学校来做业余维护,非常不稳定,存在更新滞后、间歇性不可用以及服务中断等问题……言归正传,解决这个问题的方法是:
|
dockerfile文件底37行:RUN true \ 运行到这里报错
The text was updated successfully, but these errors were encountered: