Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit fc25d3a

Browse files
committed
support mulitple bindings for same target port
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 8a5390a commit fc25d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local/compose/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ func buildContainerPortBindingOptions(s types.ServiceConfig) nat.PortMap {
532532
bindings := nat.PortMap{}
533533
for _, port := range s.Ports {
534534
p := nat.Port(fmt.Sprintf("%d/%s", port.Target, port.Protocol))
535-
bind := []nat.PortBinding{}
535+
bind := bindings[p]
536536
binding := nat.PortBinding{
537537
HostIP: port.HostIP,
538538
}

0 commit comments

Comments
 (0)