mirror of https://github.com/docker/docs.git
Merge pull request #9975 from MalteJ/dont-allocate-bridgeip
Remove BridgeIP from ipallocation pool
This commit is contained in:
commit
c438900827
|
@ -171,6 +171,9 @@ func InitDriver(job *engine.Job) engine.Status {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Block BridgeIP in IP allocator
|
||||||
|
ipallocator.RequestIP(bridgeNetwork, bridgeNetwork.IP)
|
||||||
|
|
||||||
// https://github.com/docker/docker/issues/2768
|
// https://github.com/docker/docker/issues/2768
|
||||||
job.Eng.Hack_SetGlobalVar("httpapi.bridgeIP", bridgeNetwork.IP)
|
job.Eng.Hack_SetGlobalVar("httpapi.bridgeIP", bridgeNetwork.IP)
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,6 @@ func (allocated *allocatedMap) checkIP(ip net.IP) (net.IP, error) {
|
||||||
|
|
||||||
// Register the IP.
|
// Register the IP.
|
||||||
allocated.p[ip.String()] = struct{}{}
|
allocated.p[ip.String()] = struct{}{}
|
||||||
allocated.last.Set(pos)
|
|
||||||
|
|
||||||
return ip, nil
|
return ip, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue