Closes #9938 Signed-off-by: Malte Janduda <mail@janduda.net>
@@ -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