=> [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 250B 0.0s => [internal] load metadata for docker.io/library/centos:latest 0.0s => CACHED [1/4] FROM docker.io/library/centos 0.0s => ERROR [2/4] RUN yum -y install vim 1.6s ------ > [2/4] RUN yum -y install vim: #0 1.466 CentOS Linux 8 - AppStream 77 B/s | 38 B 00:00 #0 1.469 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist ------ Dockerfile:4 -------------------- 2 | MAINTAINER TianZhi<123@qq.com> 3 | 4 | >>> RUN yum -y install vim 5 | RUN yum -y install pwd 6 | ENV MYPATH /usr/local -------------------- ERROR: failed to solve: process "/bin/sh -c yum -y install vim" did not complete successfully: exit code: 1
时间: 2023-05-15 19:05:24 浏览: 277
这是一个 Docker 构建过程的输出,其中包括加载 .dockerignore 文件、加载 Dockerfile、从 Docker Hub 上下载 centos 镜像、安装 vim 软件包等步骤。但是在安装 vim 时出现了错误,可能是由于网络连接问题或者 yum 源配置问题导致的。
相关问题
docker build -t centos-hadoop ./ # docker build -t ImageName:TagName dir [+] Building 0.0s (2/2) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s ERROR: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount2250137742/Dockerfile: no such file or directory
这个错误信息表明 Docker 在构建镜像时无法找到 Dockerfile 文件。请确认您在运行 `docker build` 命令时,当前工作目录下是否有 Dockerfile 文件,并且文件名是否正确。如果 Dockerfile 文件存在但是仍然出现这个错误,您可以尝试使用绝对路径指定 Dockerfile 文件的路径。例如,如果 Dockerfile 文件在 `/home/user/project` 目录下,您可以使用以下命令构建镜像:
```
docker build -t centos-hadoop /home/user/project
```
另外,也可能是 Docker 守护进程没有足够的权限来访问 Dockerfile 文件。请确认您是否以足够的权限运行 Docker。
<property> <name>yarn.nodemanager.aux-services</name> <value>mapreduce_shuffle</value> </property>
This property is used to specify the auxiliary services to be run by the NodeManager. In this case, the value "mapreduce_shuffle" indicates that the NodeManager will run the MapReduce shuffle service. The MapReduce shuffle service is responsible for transferring data between the map and reduce tasks in a MapReduce job.
阅读全文