一、自定义安装了vim和ifconfig命令的centos
FROM centos MAINTAINER sugar<hubusugar@hubu.edu.cn> ENV MY_PATH /usr/local WORKDIR $MY_PATH RUN yum -y install vim RUN yum -y install net-tools EXPOSE 80 CMD echo $MY_PATH CMD echo "success----------------ok" CMD /bin/bash
二、自定义tomcat镜像