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

Commit

Permalink
Merge pull request #1657 from ndeloof/multi_ports
Browse files Browse the repository at this point in the history
support mulitple bindings for same target port
  • Loading branch information
gtardif authored May 12, 2021
2 parents 8a5390a + fc25d3a commit 0a02f7d
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 0a02f7d

Please sign in to comment.