阅读量:0
主要错误
ERROR: failed to solve: process “/bin/sh -c yum -y install vim” did not complete successfully: exit code: 1
主要是容器版本问题,推荐使用Centos7
比如我的dockerfile 文件
[root@localhost dockerfile]# cat mydockerfile-centos FROM centos:7 #看这里 版本是7 MAINTAINER jiangyalun<123456@qq.com> ENV MYPATH /usr/local WORKDIR $MYPATH RUN yum -y install vim RUN yum -y install net-tools EXPOSE 80 CMD echo $MYPATH CMD echo "----end----" CMD /bin/bash