Public Repository

Last pushed: 2 years ago
Short Description
Apache Tomcat based on Oracle JDK
Full Description

Docker Image with Apache Tomcat

This repository contains Dockerfile to build Container with Apache Tomcat.


  • Install Docker.
  • Download automated build from public Docker Hub Registry: docker pull revoltaengineering/apache-tomcat


Tomact is installed at /usr/local/apache-tomcat-VERSION. Exports ports 8080 and 8009.

Start on detach mode with export port 8080 (accessed by at http://<docker-host>:8080/):

docker run -d -p 8080:8080 revoltaengineering/apache-tomcat

Start on detach mode with export port 8080 and webapps volume:

docker run -d -p 8080:8080 -v /tmp/webapps:/usr/local/apache-tomcat-8.0.33/webapps revoltaengineering/apache-tomcat

Host directory /tmp/webapps is mounted as tomcat webapps.

For use in Dockerfile:

FROM revoltaengineering/apache-tomcat:latest
ENV JAVA_OPT "-Xms512m -Xmx1512m"

Admin credentials

Admin password autogenerated on image build. To see current admin credentials just cat tomcat-users.xml:

docker run -it --rm revoltaengineering/apache-tomcat bash -c "cat \$CATALINA_HOME/conf/tomcat-users.xml"

Because admin credentials is image wide (not container wide), don't use this image on production 'as is'!
Instead, use imadge created by production/Dockerfile with version like X.X.X-production without admin apps. Or add command to you Dockerfile:

RUN rm -rf ${CATALINA_HOME}/webapps/host-manager && \
    rm -rf ${CATALINA_HOME}/webapps/manager

Docker Pull Command