ContainerPortMapping¶
Represents a published port.
using Windows.Networking;
public sealed class ContainerPortMapping
{
public ContainerPortMapping(ushort windowsPort, ushort containerPort, PortProtocol protocol);
public ushort WindowsPort { get; set; }
public ushort ContainerPort { get; set; }
public PortProtocol Protocol { get; set; }
public HostName WindowsAddress { get; set; }
}
Notes:
WindowsAddressis implemented.- It accepts only
HostNameType.Ipv4andHostNameType.Ipv6values. - DNS names are rejected.
nullmeans the default host bind address.
Example: