diff --git a/pkg/compose/create.go b/pkg/compose/create.go index 6eb9c3572..2d09d67d7 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -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) }