mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove BridgeIP from ipallocation pool
Closes #9938 Signed-off-by: Malte Janduda <mail@janduda.net>
This commit is contained in:
parent
11e47996dc
commit
f4551b8a48
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue