I have built a tomcat docker image from here.
I want to map the tomcat folder to the host machine, so I can simply access it, mainly I will need webapps
and logs
folder. webapps
folder is simply required to deploy a war file and logs
folder is for log tracing from host machine.
So I make it simpler, by mapping the whole tomcat folder like below:
docker run -ti --rm -p 8888:8080 -v C:/data:/usr/local/tomcat/ <image>
But I got this error:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:296: starting container process caused "exec: \"catalina.sh\": executable file not found in $PATH": unknown.
Any suggestions?