tomcat as a docker for pi4

Hi there
I’m try to install tomcat as docker within pi4

This is the docker Docker Hub I’m try to install with following command

docker run -d --name=tomcat \
    -p 8880:8080 \
    -v "$DOCKER_CONFIGS/webapps:/usr/local/tomcat" \
    --restart=unless-stopped \
    tomcat:8-jre11

But I’m getting following error :
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: “catalina.sh”: executable file not found in $PATH: unknown.

What I’m doing?

Hi

My best guess is that catalina.sh, is in the /usr/local/tomcat directory, which you have overwritten with $DOCKER_CONFIGS/webapps (due to your mount)

Maybe it should be:

-v "$DOCKER_CONFIGS/webapps:/usr/local/tomcat/webapps" \

?

(im not a java guy so i might be wrong :sweat_smile:)

I found the issue, I’m not doing it correctly, this article helped me Deploying Your First Web App to Tomcat on Docker | Cprime

1 Like

great job! It is correctly useful for me. Keep sharing the same thing