docker run[ -v <webapps>:/webapps][ -v <logs>:/logs][ -v <.ssh>:/.ssh][ -p <http>:8080][ -p <https>:8443][ -p <AJP>:8009][ -p <tomcat>:8005] qasymphony/tomcat:<version>
A Tomcat image that runs in HTTP, HTTPS, APR and AJP mode.
/conf web server configuration location. The image will initialize the directory with default configurations./webapps web application directory/logs log directory/work Tomcat's working directory./.ssh SSL certificate and private key storage. The file names are specified using environment variables. They can also be mounted separatedly as files.8080 HTTP service8443 HTTPS service8009 AJP service8005 Tomcat communication service. This could be used to stop Tomcat remotely.SSL_ENABLED specify if Tomcat starts with HTTPS protocol or not. This is unset by default.SSL_PROTOCOL specify SSL protocol that Tomcat will run on. The default value is TLSv1.SSL_CERT SSL certificate file, default to server.crtSSL_KEY SSL private key, default to server.keyAJP_ENABLED specify if Tomcat starts with AJP protocol or not. This is unset by default.TOMCAT_HOME for internal use only. Decendants of this image will need to specify this for the entry point to work properly.HTTP with APR mode and deploy applications in /webapps directory. Other protocols can be enabled by setting environment variablesSSL_CERT and SSL_KEY inside the mounted /.ssh directory, the image will generate a random self-signed key for the server.$TOMCAT_HOME/bin/catalina.sh run in the binary directory to start Tomcat and print output to stdout. We can run this image to a shell using:
docker run[ -v <webapps>:/webapps][ -v <logs>:/logs][ -v <.ssh>:/.ssh][ -p <http>:8080][ -p <https>:8443][ -p <AJP>:8009][ -p <tomcat>:8005] qasymphony/tomcat:<version> /bin/bash
Content type
Image
Digest
sha256:12e8df0ba…
Size
170.4 MB
Last updated
over 10 years ago
docker pull qasymphony/tomcat