mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
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…
x
Reference in New Issue
Block a user