mirror of
https://github.com/moby/moby.git
synced 2026-08-10 17:15:06 +00:00
Previous commit changed the OSAllocator to listen after binding a port, such that we're 100% sure that the port is free. We can now make the OSAllocator responsible for retrying port allocations when it tries to find an ephemeral port, or a free port in a range. Move the retry logic from the 'nat' portmapper to the OSAllocator. Signed-off-by: Albin Kerouanton <albinker@gmail.com>