Public | Automated Build

Last pushed: 2 years ago
Short Description
Tomcat 8 on Oracle Java 8
Full Description

Tomcat 8 on Java 8

This image includes Tomcat 8 installation and deployment. It is based on inovatrend/java8 , check there what else is installed on it.

Tomcat runs as runit service. It is installed in /opt/tomcat dir, and includes Tomcat Manager for deployment of webapps.

To access Tomcat Manager:

  • Username: admin
  • Password: can be set when running docker container by passing TOMCAT_PASS env. veriable. Otherwise random password is generated on startup.

Password can be seen using command:

docker logs <container_id>

In log entry similar to this will appear:

========================================================================
You can now configure to this Tomcat server using:

    admin:6dD6x4f4IVKT

========================================================================

Pulling image

A prebuilt container is available on Docker Hub, you can get it with following command

docker pull inovatrend/tomcat8-java8

Usage

To test run it, run following command:

docker run --rm -P -t -i inovatrend/tomcat8-java8 /sbin/my_init -- bash -l

To run it as daemon, you can use command similar to this one:

docker run -d -p 49154:8080 --name app_name -e "JAVA_OPTS=-Dsome.property=value -Xmx1024m" -e "TOMCAT_PASS=somePass" inovatrend/tomcat8-java8
Docker Pull Command
Owner
inovatrend
Source Repository

Comments (0)