portia - 在mac下用docker build镜像时,报Failed to fetch
ringa_lee
ringa_lee 2017-04-24 09:09:21
0
1
750

1.在mac上安装portia,https://github.com/scrapinghub/portia
git clone后使用docker build -t portia .
最后爆出错误

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python3-defaults/python3-dev_3.4.0-0ubuntu2_amd64.deb  Connection failed [IP: 91.189.91.24 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Command failed (exitcode: 100), exiting...

是因为ubuntu的源要更改吗?

ringa_lee
ringa_lee

ringa_lee

reply all(1)
Peter_Zhu

This is because the download from the official ubuntu source failed during build.

  • You can try it a few more times, maybe it will succeed when the network is good.

  • Or change the ubuntu source to a domestic source: such as 163. Note that this requires modifying the commands in the Dockerfile.

However, it is recommended to download the docker image directly:
docker pull scrapinghub/portia-on-dash

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!