ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPorts<ParentT>.withInternalPort(int port) 方法

定义

Specifies the container's port is 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> withInternalPort(int port)

参数

port
int

TCP port to be exposed internally

返回

适用于