I\'m running tomcat in docker, but I can\'t see the logs. They are written to various log files under tomcat/logs, but I can\'t see them when tomcat is running in a docker c
You seem to be confused about the different between RUN and CMD.
The RUN directive is used to run commands during the build process. It is never executed in a container. When you write...
RUN ["/usr/local/tomcat/bin/catalina.sh", "start"]
...this means that during the docker build process, Docker will start tomcat, but will immediately kill it and continue to build your image.
Only the CMD and ENTRYPOINT directives define commands that will be run when you boot an image with docker run. So possibly you want something like:
CMD /usr/local/tomcat/bin/catalina.sh start && tail -f /usr/local/MYAPP.log