mirror of https://github.com/docker/compose.git
Fix cannot setup IPAM gateway
Signed-off-by: Eric Fan <ericfan@qnap.com>
This commit is contained in:
parent
00fd1c1530
commit
41b3967cb5
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue