June 2017
Intermediate to advanced
360 pages
10h 2m
English
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>
Read now
Unlock full access