我正在尝试运行Dockerfile脚本,并且遇到此错误:
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的额外磁盘空间。
你想继续吗? [是/否]中止。
命令
/bin/sh -c apt-get update && apt-get install curl
返回了非零代码:1”
有任何想法吗?
最佳答案
您需要apt-get -y install curl
。 -y
使apt继续进行而不提示您进行确认。
关于docker - 无法建立Docker容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54352416/