Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法生成docker容器_Docker_Apt Get - Fatal编程技术网

无法生成docker容器

无法生成docker容器,docker,apt-get,Docker,Apt Get,我正在尝试运行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-

我正在尝试运行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?
这发生在第一线
运行apt get install curl

我试着这样做:
运行apt-get-update&&apt-get-install-curl
,但我后来遇到了这个问题: “执行此操作后,将使用339 kB的额外磁盘空间

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

你想
安装apt-y curl
-y
会导致apt在不提示确认的情况下继续进行。

您希望
apt获取-y安装curl
-y
使apt在不提示确认的情况下继续进行。

这将有助于:

RUN apt-get clean && apt-get -y update && apt-get install -y curl
这将有助于:

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

你能发布你的
Dockerfile
吗?你能发布你的
Dockerfile
吗?