目录
vim Dockerfile
FROM centos:latest
MAINTAINER zhangjc<zhangjc@163.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 "success--------------ok"
CMD /bin/bash
docker build -t mycentos:1.1 .
docker run -it mycentos:1.1