portia - 在mac下用docker build镜像时,报Failed to fetch

 董士伟的微博当_250 发布于 2022-10-25 08:02

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的源要更改吗?

1 个回答
  • 这是因为在build的时候,从ubuntu官方源下载失败。

    • 可以多试几遍,说不定网络好的时候就成功了。

    • 或者把ubuntu的源改成国内的源:比如163的。注意这个需要修改Dockerfile里面的命令。

    不过还是建议直接下载docker镜像:
    docker pull scrapinghub/portia-on-dash

    2022-10-26 14:32 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有