docker 配置 tomcat
启动tomcat
$ docker run -it --rm -p 8888:8080 tomcat:8.0
将war的路径映射到tomcat容器中
docker cp /root/testWar/ssm.war c1f48410835a:/usr/local/tomcat/webapps
进入容器的命令
docker exec -it c1f48410835a /bin/bash
重启tomcat
启动tomcat
$ docker run -it --rm -p 8888:8080 tomcat:8.0
将war的路径映射到tomcat容器中
docker cp /root/testWar/ssm.war c1f48410835a:/usr/local/tomcat/webapps
进入容器的命令
docker exec -it c1f48410835a /bin/bash
重启tomcat