make findNextPort circular, add all-ports-allocated error

Docker-DCO-1.1-Signed-off-by: Tejesh Mehta <tejesh.mehta@gmail.com> (github: tjmehta)
Merge pull request #4949 from tjmehta/4908-fix_dynamic_port_allocation_limit

Fix dynamic port allocation limit