Public | Automated Build

Last pushed: 7 months ago
Short Description
Tomcat server, 6/7/8
Full Description

docker-tomcat

Base docker image to run a Tomcat application server from 6.0 to 8.0, with jre7 or jre8.

Available tags

cloudesire/tomcat:8-jre8
cloudesire/tomcat:7-jre8
cloudesire/tomcat:7-jre7
cloudesire/tomcat:6-jre7

Usage

To run the image and bind to port :

docker run -d -p 8080:8080 cloudesire/tomcat:7-jre8

The first time that you run your container, a new user admin with all privileges
will be created in Tomcat with a random password. To get the password, check the logs
of the container by running:

docker logs <CONTAINER_ID>

You will see an output like the following:

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

    admin:b1uKcRK3r6SF

Please remember to change the above password as soon as possible!
========================================================================

In this case, b1uKcRK3r6SF is the password allocated to the admin user.

You can now login to you admin console to configure your tomcat server:

http://127.0.0.1:8080/manager/html
http://127.0.0.1:8080/host-manager/html

Setting a specific password for the admin account

If you want to use a preset password instead of a random generated one, you can
set the environment variable TOMCAT_PASS to your specific password when running the container:

docker run -d -p 8080:8080 -e TOMCAT_PASS="mypass" cloudesire/tomcat

You can now test your deployment:

http://127.0.0.1:8080/

Done!

Environment variables

  • JAVA_OPTS: set additionals java options (default empty, e.g. JAVA_OPTS=-Xmx2048m)
  • TOMCAT_BIND_ON_INIT: change bindOnInit parameter on the HTTP connector (default TOMCAT_BIND_ON_INIT=true)
Docker Pull Command
Owner
cloudesire
Source Repository

Comments (5)
gionn
7 months ago

Please use issues on GH for reporting problems

https://github.com/ClouDesire/docker-tomcat/issues

rainynight65
9 months ago

Please update this description, as neither the 'latest' tag nor any of the ones listed under 'Image Tags' work at this time.

referuptarantegui
2 years ago

@mihairaulea The correct tag is 8-jre8. You can view it on tags

mihairaulea
2 years ago

Tag latest not found in repository

aaquino
2 years ago

its possible set JAVA_OPTS?