service tomcat7 start fails, but the process exists and tomcat is running

后端 未结 4 2044
名媛妹妹
名媛妹妹 2021-02-19 10:29

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

4条回答
  •  离开以前
    2021-02-19 11:00

    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.

提交回复
热议问题