docker部署tomcat项目遇到 More than one fragment with the name [org_apache_tomcat_websocket]

Posted wangt1

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker部署tomcat项目遇到 More than one fragment with the name [org_apache_tomcat_websocket]相关的知识,希望对你有一定的参考价值。

没截图  看到了cause by  More than one fragment with the name [org_apache_tomcat_websocket]  (后面还有 )

 

部署项目命令

docker run -dit --network=hezhi --name=score  -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime -p 8086:80 -v /data/tomcat-8.5.50:/tomcat-8.5.50 390b58b1be42

 

因为部署时用的是tomcat7  导致项目一直启动不了,更换成tomcat8 问题解决  目前使用的是8.5.50

看日志!

先进入docker容器,

 

logs为tomcat日志

以上是关于docker部署tomcat项目遇到 More than one fragment with the name [org_apache_tomcat_websocket]的主要内容,如果未能解决你的问题,请参考以下文章

docker部署并运行Redis

Docker容器和本机之间的文件传输 使用Docker部署Tomcat项目

Docker安装Tomcat镜像并部署web项目

Docker安装Tomcat镜像并部署web项目

打包NodeJs-Docker并快速部署

Docker Tomcat部署