首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法构建docker容器

无法构建docker容器
EN

Stack Overflow用户
提问于 2019-01-25 01:35:00
回答 2查看 296关注 0票数 0

我正在尝试运行我的Dockerfile脚本,但我遇到了这个错误:

代码语言:javascript
复制
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.47.0-1ubuntu2.9_amd64.deb  404  Not Found [IP: 91.189.88.161 80]

E: Unable to fetch some archives, may be run apt-get update or try with --fix-missing?

这发生在RUN apt-get install curl

我试着这样做:RUN apt-get update && apt-get install curl,但我当时面对的是这样的情况:“在这个操作之后,将使用339 kB的额外磁盘空间。

你想继续吗?Y/n中止。命令/bin/sh -c apt-get update && apt-get install curl返回一个非零代码:1“有什么想法吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-01-25 01:57:54

你想要apt-get -y install curl-y使apt在不提示确认的情况下继续进行。

票数 2
EN

Stack Overflow用户

发布于 2019-01-25 01:59:05

这应该会有帮助:

代码语言:javascript
复制
RUN apt-get clean && apt-get -y update && apt-get install -y curl
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54352416

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档