dockerfile 创建centos 镜像
作者:互联网
1.编写dockerfile文件
FROM centos
MAINTAINER YY<1184143438@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 ">>>>>..."
CMD /bin/bash
2.构建镜像
docker build -f dokcerfile-centos -t mycentos:1.0 .
标签:RUN,centos,CMD,echo,MYPATH,镜像,dockerfile 来源: https://blog.csdn.net/rainbowstar333/article/details/120638160