mirror of
https://github.com/moby/moby.git
synced 2026-07-18 21:42:13 +00:00
This new struct allocates ports from the operating system by creating sockets and binding them. It's based on the existing bindTCPOrUDP and bindSCTP functions previously defined in the bridge driver. It tries to detect conflicts on best effort basis, and doesn't guarantee that the ports it allocates are not in use by other processes. Signed-off-by: Albin Kerouanton <albinker@gmail.com>