Fix cannot setup IPAM gateway

Signed-off-by: Eric Fan <ericfan@qnap.com>
This commit is contained in:
Eric Fan 2022-04-07 11:43:34 +08:00 committed by Nicolas De loof
parent 00fd1c1530
commit 41b3967cb5
1 changed files with 4 additions and 1 deletions

View File

@ -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)
}