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

Commit

Permalink
support mulitple bindings for same target port
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <[email protected]>
  • Loading branch information
ndeloof committed May 10, 2021
1 parent 8a5390a commit fc25d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/compose/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ func buildContainerPortBindingOptions(s types.ServiceConfig) nat.PortMap {
bindings := nat.PortMap{}
for _, port := range s.Ports {
p := nat.Port(fmt.Sprintf("%d/%s", port.Target, port.Protocol))
bind := []nat.PortBinding{}
bind := bindings[p]
binding := nat.PortBinding{
HostIP: port.HostIP,
}
Expand Down

0 comments on commit fc25d3a

Please sign in to comment.