首先安装Tomcat镜像,创建Tomcat容器(安装查看上篇文章)
-v 宿主目录路径:容器内目录路径
docker run --name zcpt-p 8080:8080 -v /usr/local/tomcat/webapps:/usr/local/tomcat/webapps -v /usr/local/tomcat/conf:/usr/local/tomcat/conf --privileged=true tomcat:8.5.38
-v /usr/local/tomcat/webapps:/usr/local/tomcat/webapps