diff --git a/libnetwork/netutils/utils_linux.go b/libnetwork/netutils/utils_linux.go index 10a5e109ee..4c034072d7 100644 --- a/libnetwork/netutils/utils_linux.go +++ b/libnetwork/netutils/utils_linux.go @@ -94,10 +94,12 @@ func ElectInterfaceAddresses(name string) ([]*net.IPNet, []*net.IPNet, error) { } if link == nil || len(v4Nets) == 0 { - // Choose from predefined local scope networks + // Choose from predefined local scope networks v4Net, err := FindAvailableNetwork(ipamutils.PredefinedLocalScopeDefaultNetworks) if err != nil { - return nil, nil, err + return nil, nil, fmt.Errorf("%s, PredefinedLocalScopeDefaultNetworks List: %+v", + err.Error(), + ipamutils.PredefinedLocalScopeDefaultNetworks) } v4Nets = append(v4Nets, v4Net) }