下载镜像
docker pull tomcat:8
启动
docker run -d -p 8080:8080 -v /data/tomcat/webapps/:/usr/local/tomcat/webapps/ -v /data/tomcat/logs/:/usr/local/tomcat/logs/ -v /data/tomcat/conf/:/usr/local/tomcat/conf/ tomcat:8
下载镜像
docker pull tomcat:8
启动
docker run -d -p 8080:8080 -v /data/tomcat/webapps/:/usr/local/tomcat/webapps/ -v /data/tomcat/logs/:/usr/local/tomcat/logs/ -v /data/tomcat/conf/:/usr/local/tomcat/conf/ tomcat:8