Docker Community Forums

Share and learn in the Docker community.

Executing Tomcat service using CMD exec

Need help on Tomcat . In my Docker image, tomcat is downloaded as a RPM and runs as a service.
I want to invoke Tomcat service (/etc/init.d/tomcat8) using CMD exec form ,

CMD [“executable”,“param1”,“param2”]

e.g. CMD [“tomcat8” ,“start”] . However I am not sure what is the correct syntaxt for it?

Can someone please help. Due to a monitoring dependency, I cannot use the other forms of CMD.