Remove BridgeIP from ipallocation pool

Closes #9938

Signed-off-by: Malte Janduda <mail@janduda.net>
This commit is contained in:
Malte Janduda 2015-01-08 16:21:01 +01:00
parent 11e47996dc
commit f4551b8a48
2 changed files with 3 additions and 1 deletions

View File

@ -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
job.Eng.Hack_SetGlobalVar("httpapi.bridgeIP", bridgeNetwork.IP)

View File

@ -121,7 +121,6 @@ func (allocated *allocatedMap) checkIP(ip net.IP) (net.IP, error) {
// Register the IP.
allocated.p[ip.String()] = struct{}{}
allocated.last.Set(pos)
return ip, nil
}