Container port to host port mapping

PortBinding element in the application manifest can be used to configure the ports used for communication by the container. The binding maps the ports internal to the container to the ones open on the hosting machine. Following is an example:

<ServiceManifestImport> 
<ServiceManifestRef ServiceManifestName="FrontendServicePackage" ServiceManifestVersion="1.0"/>
<Policies>
<ContainerHostPolicies CodePackageRef="FrontendService.Code">
<PortBinding ContainerPort="8905"/>
</ContainerHostPolicies>
</Policies>
</ServiceManifestImport>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset