今天在学习编写Dockerfile过程中我的需求是在centos中兼容vim 以及net-tools于是我写了以下Dockerfile文件但是安装yum源显示报错;
#我的Dockerfile
FROM centos
MAINTAINER tfy<1264554409@qq.com>
ENV MYPATH /usr/local
WORKDIR $MYPATH
RUN yum -y install vim
RUN yum -y install net-tools
EXPOSE 80
CMD echo "===成装成功===="
CMD /bin/bah
#构建
docker build -t centos_filetest:1.0 .
#报错内容:
[+] Building 1.5s (6/7) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 89B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring c