安装tomcat镜像
docker pull tomcat
创建tomcat容器并进行目录挂载
docker run -d --name tomcat -p 80:8080 -v /mydata/tomcat/webapps/:/usr/local/tomcat/webapps/ -v /mydata/tomcat/conf/:/usr/local/tomcat/conf/ -v /mydata/tomcat/logs/:/usr/local/tomcat/logs/ tomcat