Sign inSign up

buluma/centos-tomcat

By buluma

Updated about 4 hours ago

Image
0

10K+

buluma/centos-tomcat repository overview

Centos Tomcat

Docker Image CI

Docker container: CentOS 8 + Java 17 + Tomcat 10

Build the image

git clone https://github.com/buluma/centos-tomcat.git
cd centos-tomcat
docker build -t buluma/centos-tomcat .

How to use

Put your war under the /opt/tomcat/webapps directory and run the following command.

docker run -v /opt/tomcat/webapps:/opt/tomcat/webapps -v /opt/tomcat/logs:/opt/tomcat/logs -p 8080:8080 -i -t --name centos-tomcat buluma/centos-tomcat

Once you run it, you can start the container with docker start centos-tomcat in next time and log file will be under the /opt/tomcat/logs directory.

Also, if you got some error, you can remove the container with docker rm centos-tomcat. Your current container list will be show with docker ps -a.

For Mac user, you must share the directory /opt/tomcat/webapps and /opt/tomcat/logs on Docker > Preferences > File Sharing.

Versions

If you got error while build the docker image, please check the latest version of Java and Tomcat.

SoftwareVersionNote
CentOS8
Java17 Java Release Note
Apache Tomcat10.0.16Tomcat Download Page

Docker Official Image for Tomcat is also available.

Tag summary

Content type

Image

Digest

sha256:3ce1384d9

Size

357.6 MB

Last updated

about 4 hours ago

docker pull buluma/centos-tomcat