1.准备好jdk和tomcatapache-tomcat-8.5.32.tar.gzjdk-8u181-linux-x64.tar.gz 注意:a.jdk和tomcat记得从官网下载,否则制作出来的镜像容易出现不兼容问题.b.apache-tomcat-8.5.32.tar.gz.jdk-8u181-linux-x64.tar.gz.Dockerfile放在同一目录 2.编写Dockerfile,内容如下: FROM centos:latest MAINTAINER john # now add…
文件说明 此文件用于docker镜像文件的制作 基本结构 Dockerfile文件由行命令组成,以#开头注释行 一般分为四部分,基础镜像信息.维护者信息.镜像操作指令和容器启动执行指令. 例如 #Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to b…