Open FueledBy-Pizza opened 1 week ago
As far as I understand tomcat, we wouldn't want the conf
directory writeable by the running user, since that could be a security concern. So, creating the configuration directories that your app needs should be done in your Dockerfile.
Though I would guess that if you're not putting any configuration in there, then they are probably not relevant and createDirs
could be disabled in the server.xml. 🤷
When running a tomcat Docker image, this error appears, despite the container seems to go on with the execution:
SEVERE [main] org.apache.catalina.startup.HostConfig.beforeStart Unable to create directory for deployment: [/usr/local/tomcat/conf/Catalina/localhost] Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myapp]]
Steps to reproduce: Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: focal
Docker version 20.10.23, build 7155243
With the Docker image:
This seems to be a known old problem: #128 and #209 .