docker 构建tomcat
docker search tomcat
docker pull tomcat
创建挂载目录:
运行docker
docker run --name tomcat_mysql_cs --restart always -p 8081:8080 -v /app/tomcat/tomcat_mysql_cs/webapps:/usr/local/tomcat/webapps -v /app/tomcat/tomcat_mysql_cs/logs:/usr/local/tomcat/logs -v /etc/localtime:/etc/localtime:ro -e TZ=Asia/Shanghai --privileged=true -d tomcat
查看日志
访问: