docker pull tomcat:8.5.40
docker run --name yltomcat -d -p 8080:8080 --restart=always -v /home/www/tomcat/yl/webapps/:/usr/local/tomcat/webapps/ -v /home/www/tomcat/yl/logs/:/usr/local/tomcat/logs/ -v /etc/localtime:/etc/localtime:ro tomcat:8.5.40
原文:https://www.cnblogs.com/netcorner/p/14405455.html