WIP: fix persistent port allocation

This piggybacks on #6555 with some fixups according to @lk4d4's comments. More to come, but please feel free to review at any point.

/cc @crosbymichael 
I could do that as a separate patch, and that will let people try this patch out at least.

Up to you guys.

On Jun 26, 2014, at 8:58 PM, Alexandr Morozov <notifications@github.com> wrote:

> In daemon/networkdriver/bridge/driver.go:
> 
> >  
> > -		if err != nil {
> > -			return job.Error(err)
> > +	var host net.Addr
> > +	for i := 0; i < MaxAllocatedPortAttempts; i++ {
> If we have time before 1.0.2 I prefer to move this to portmapper.Map also.
> 
> —
> Reply to this email directly or view it on GitHub.
>