-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Mac 下运行后 报错.... 好像是apt-get update 出错 网上的方法都试了不行 有啥方法解决吗 #3
Comments
Dockfile文件顶部有两行:
取消注释,proxy IP换成可用的IP。 |
还是不行 我换成本机的ip 取消注释 报的错误还是一样..... |
这里的IP是指可访问外国网的代理IP。
|
还是不行 我都快崩溃了 别人都没遇到这个问题嘛 。。。。坑
|
在Dockerfile 改了下源 之前不行 这次尝试又可以了。。。。。。 FROM php:fpm You may need proxy#RUN export http_proxy=192.168.1.10:1080 RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak RUN echo "deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib" >> /etc/apt/sources.list |
OK,这个问题主要和网络环境,DNS解析,以及ubuntu容器的源有关。 |
Hlz-Mac:docker ihziluoh$ cd dnmp-master/
Hlz-Mac:dnmp-master ihziluoh$ docker-compose up
Building php-fpm
Step 1/16 : FROM php:fpm
---> 9b44e8b4c8b6
Step 2/16 : RUN apt-get update
---> Running in 83ad66ef7db6
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://deb.debian.org jessie InRelease
Get:2 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:3 http://security.debian.org jessie/updates/main amd64 Packages [391 kB]
Get:4 http://deb.debian.org jessie Release.gpg [2373 B]
Get:5 http://deb.debian.org jessie-updates/main amd64 Packages [23.1 kB]
Get:6 http://deb.debian.org jessie Release [148 kB]
Get:7 http://deb.debian.org jessie/main amd64 Packages [9035 kB]
W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/binary-amd64/Packages Hash Sum mismatch
Fetched 9808 kB in 11s (839 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'php-fpm' failed to build: The command '/bin/sh -c apt-get update' returned a non-zero code: 100
The text was updated successfully, but these errors were encountered: