I have been trying to install tomcat7 on ubuntu docker images with apt-get install tomcat7
.
The installation works fine and starting tomcat from the catalina.sh wo
Docker does not start up any of the OS services, only the command given in the Dockerfile or explicitly on the command line.
My understanding is that service
and related commands depend on an init process which does not exist.
You should start you tomcat explicitly from the Catalina scripts. You can wrap that with something like supervisord to get the "restart-if-it-crashes" behavior.