Skip to content

Commit

Permalink
Fix cannot setup IPAM gateway
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Fan <ericfan@qnap.com>
  • Loading branch information
qnap-ericfan authored and ndeloof committed Apr 24, 2022
1 parent 00fd1c1 commit 41b3967
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/compose/create.go
Expand Up @@ -1048,7 +1048,10 @@ func (s *composeService) ensureNetwork(ctx context.Context, n types.NetworkConfi

for _, ipamConfig := range n.Ipam.Config {
config := network.IPAMConfig{
Subnet: ipamConfig.Subnet,
Subnet: ipamConfig.Subnet,
IPRange: ipamConfig.IPRange,
Gateway: ipamConfig.Gateway,
AuxAddress: ipamConfig.AuxiliaryAddresses,
}
createOpts.IPAM.Config = append(createOpts.IPAM.Config, config)
}
Expand Down

0 comments on commit 41b3967

Please sign in to comment.