dotcloud/docker — pull request #4949 by tjmehta (2014-04-01 03:24:15+00:00)
Title: Fix dynamic port allocation limit

I made `findNextPort` search circularly rather than ending at `EndPortRange`. `findNextPort` will continue to search for a port until it determines that all the ports and allocated and return ErrAllPortsAllocated.