无法构建 docker 个容器

Unable to build docker container

我正在尝试 运行 我的 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 的额外磁盘 space。

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

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

这应该有帮助:

RUN apt-get clean && apt-get -y update && apt-get install -y curl