无法生成docker容器
我正在尝试运行Dockerfile脚本,但遇到以下错误:无法生成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-
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
吗?