Skip to content

Deploying Tomcat on Podman

Endi S. Dewata edited this page Feb 18, 2023 · 2 revisions

Deploying Tomcat

To deploy Tomcat container:

$ podman run \
    --name tomcat \
    --rm \
    --tmpfs /tmp \
    --tmpfs /run \
    -p 8080:8080 \
    tomcat

To access the container:

$ podman exec -ti tomcat bash

Deploying Web Application

To deploy JAR file:

$ podman cp <JAR file> tomcat:/usr/local/tomcat/lib

To deploy WAR file:

$ podman cp <WAR file> tomcat:/usr/local/tomcat/webapps/<context>.war