mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 12:41:42 +00:00
network: exclude default routes from checkRouteOverlaps
Docker-DCO-1.1-Signed-off-by: Johan Euphrosine <proppy@google.com> (github: proppy)
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ func networkSize(mask net.IPMask) int32 {
|
||||
|
||||
func checkRouteOverlaps(networks []netlink.Route, dockerNetwork *net.IPNet) error {
|
||||
for _, network := range networks {
|
||||
if networkOverlaps(dockerNetwork, network.IPNet) {
|
||||
if !network.Default && networkOverlaps(dockerNetwork, network.IPNet) {
|
||||
return fmt.Errorf("Network %s is already routed: '%s'", dockerNetwork, network)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user