启动tomcat容器,映射80端口docker run –name tomcat -p 80:8080 -d tomcat
把web应用war包复制到容器里docker cp web.war tomcat:/usr/local/tomcat/webapps
浏览器访问即可