mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Set ExternalPortReserved for dummy proxy
Signed-off-by: Ameya Gawde <agawde@mirantis.com>
This commit is contained in:
parent
c576de88ed
commit
cba8cf34d2
1 changed files with 5 additions and 4 deletions
|
@ -490,10 +490,11 @@ func ConvertPortBindings(portBindings []types.PortBinding) ([]json.RawMessage, e
|
||||||
}
|
}
|
||||||
|
|
||||||
encodedPolicy, err := json.Marshal(hcsshim.NatPolicy{
|
encodedPolicy, err := json.Marshal(hcsshim.NatPolicy{
|
||||||
Type: "NAT",
|
Type: "NAT",
|
||||||
ExternalPort: elem.HostPort,
|
ExternalPort: elem.HostPort,
|
||||||
InternalPort: elem.Port,
|
InternalPort: elem.Port,
|
||||||
Protocol: elem.Proto.String(),
|
Protocol: elem.Proto.String(),
|
||||||
|
ExternalPortReserved: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue