1

I'm trying to restart Tomcat server hosted on a Docker container using Azure CLI. What is the best approach to do that. I saw that I could do it running a .sh/powershel script via Azure CLI. Is there a better solution to restart the Tomcat?

Thanks & Regards!

  • Where do you run the Tomcat server hosted on a Docker container? Azure container instance? Azure VM? AKS? Please give more details about the host. – Charles Xu Aug 06 '19 at 05:37

1 Answers1

0

It's unrelated to Azure CLI.

You can try to use Tomcat Host Manager API to stop and start a virtual host, if you have configured manager application access for your Tomcat in Docker, please see the Tomcat offical document Host Manager App -- Text Interface to know more details.

The restart operation for Tomcat includes two steps of doing stop and start commands, as the figure below.

enter image description here

It is supported by HostManagerServlet, as the figure below.

enter image description here

Hope it helps.

Peter Pan
  • 23,476
  • 4
  • 25
  • 43