代码语言: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