docker安装自带jdk的tomcat

2024-04-22 00:29:47 浏览数 (1)

代码语言:docker复制
docker run -d -p 8080:8080 
-v /usr/local/data/tomcat/conf:/usr/local/tomcat/conf 
-v /usr/local/data/tomcat/webapps:/usr/local/tomcat/webapps 
-v /usr/local/data/tomcat/logs:/usr/local/tomcat/logs 
--restart=always 
--name ydt-tomcat-jdk-gahc 
tomcat:9-jdk8-openjdk

0 人点赞