Skip to content

Commit 41b3967

Browse files
qnap-ericfanndeloof
authored andcommitted
Fix cannot setup IPAM gateway
Signed-off-by: Eric Fan <[email protected]>
1 parent 00fd1c1 commit 41b3967

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/compose/create.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,10 @@ func (s *composeService) ensureNetwork(ctx context.Context, n types.NetworkConfi
10481048

10491049
for _, ipamConfig := range n.Ipam.Config {
10501050
config := network.IPAMConfig{
1051-
Subnet: ipamConfig.Subnet,
1051+
Subnet: ipamConfig.Subnet,
1052+
IPRange: ipamConfig.IPRange,
1053+
Gateway: ipamConfig.Gateway,
1054+
AuxAddress: ipamConfig.AuxiliaryAddresses,
10521055
}
10531056
createOpts.IPAM.Config = append(createOpts.IPAM.Config, config)
10541057
}

0 commit comments

Comments
 (0)