
The port you open with the -p parameter should be the port your Tomcat application listens to requests on.

Add the following to Dockerfile and save your changes: FROM library/tomcat

In the service-fabric-java-getting-started/container-apache-tomcat-web-server-sample directory, create a file named Dockerfile (with no file extension). git clone Ĭhange directories to the Apache Tomcat server sample directory ( service-fabric-java-getting-started/container-apache-tomcat-web-server-sample): cd service-fabric-java-getting-started/container-apache-tomcat-web-server-sampleĬreate a Docker file based on the official Tomcat image located on Docker Hub and the Tomcat server sample. You can create a container registry in your Azure subscription using the Azure portal or the Azure CLI.įollow the steps in this section to build a Docker image based on an Apache Tomcat image and a simple Web app and then run it in a container on your local system.Ĭlone the Service Fabric getting started with Java samples repository on your development computer.

PrerequisitesĪ container registry in Azure Container Registry. To learn more about Apache Tomcat, see the Apache Tomcat homepage.
#Running elasticsearch on docker on mac os x how to#
This article shows you how to build a container with Apache Tomcat and a simple Web application, deploy the container to a Service Fabric cluster running Linux, and connect to the Web application. Apache Tomcat is a popular, open-source implementation of the Java Servlet and Java Server technologies.
