ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPorts<ParentT>.withInternalPorts(int... ports) 方法
定义
Specifies the container's ports are available to internal clients only (other container instances within the container group).
Containers within a group can reach each other via localhost on the ports that they have exposed, even if those ports are not exposed externally on the group's IP address.
public WithPortsOrContainerInstanceAttach<ParentT> withInternalPorts(int... ports)
参数
- ports
- int...
array of TCP ports to be exposed internally
返回
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT>
the next stage of the definition