Based on official image, download war on startup from $WAR_URL and name it $APP_NAME
docker run -it -p 8888:8080 -e APP_NAME=mytest -e WAR_URL=https://tomcat.apache.org/tomcat-8.0-doc/appdev/sample/sample.war sample.war --name mytest -d vixns/tomcat
curl http://localhost:8888/mytest
Content type
Image
Digest
sha256:f6281c427…
Size
150.5 MB
Last updated
over 11 years ago
docker pull vixns/tomcat