Uh oh!
There was an error while loading. Please reload this page.
(windows) Pick a random host port if the user does not specify a host port. - #2368
Conversation
pradipd
commented
Apr 19, 2019
@mavenugo PTAL. |
7e6982e to
43a5636CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
For overlay, l2bridge, and l2tunnel, if the user does not specify a host port, windows driver will select a random port for them. This matches linux behavior. For ics and nat networks the windows OS will choose the port. Signed-off-by: Pradip Dhara <pradipd@microsoft.com>
43a5636 to
e6b4a7aCompareandrewhsu
commented
Apr 22, 2019
Looks like unit tests still failing. Looking to get this backported to bump_18.09 when this PR is ready. |
pradipd
commented
Apr 23, 2019
I can't get a local repro. I'm running on Ubuntu 16.04. What do I need to do to move past this? |
thaJeztah
commented
Apr 23, 2019
Could someone restart CI on this one, or could this be an actual issue? If this is due to flakiness / slow runs, there's a configuration option to extend the timeout (see docker/cli#1750, where I raised it for docker/cli) |
mavenugo
commented
Apr 23, 2019
I restarted the CI again. The flakiness doesnt seem to be related. But let me give it another go. |
thaJeztah
commented
Apr 23, 2019
CI is green now 👍 |
| const ( | ||
| StartPortRange = 60000 | ||
| EndPortRange = 65000 |
There was a problem hiding this comment.
Looks like these don't have to be exported
Also; given that constants are assigned for these, I assume there's no configurable ephemeral port range on Windows (as there's on Linux)?
There was a problem hiding this comment.
Looks like there is a configurable range; should that be used? https://support.microsoft.com/en-gb/help/929851/the-default-dynamic-port-range-for-tcp-ip-has-changed-in-windows-vista
full diff: moby/libnetwork@c902989...872f0a8 - moby/libnetwork#2354 [18.09 backport] Cleanup the cluster provider when the agent is closed - backport of moby/libnetwork#2307 Fix for problem where agent is stopped and does not restart - fixesdocker/for-linux#495 Docker swarm overlay networking not working after --force-new-cluster - moby/libnetwork#2369 [18.09 BACKPORT] Pick a random host port if the user does not specify a host port - backport of moby/libnetwork#2368 (windows) Pick a random host port if the user does not specify a host port Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: moby/libnetwork@48f8463...9ff9b57 - moby/libnetwork#2368 (windows) Pick a random host port if the user does not specify a host port Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: moby/libnetwork@c902989...872f0a8 - moby/libnetwork#2354 [18.09 backport] Cleanup the cluster provider when the agent is closed - backport of moby/libnetwork#2307 Fix for problem where agent is stopped and does not restart - fixesdocker/for-linux#495 Docker swarm overlay networking not working after --force-new-cluster - moby/libnetwork#2369 [18.09 BACKPORT] Pick a random host port if the user does not specify a host port - backport of moby/libnetwork#2368 (windows) Pick a random host port if the user does not specify a host port Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 5354408039681020f9ad6afe4bf696fc90f9ce69 Component: engine
full diff: moby/libnetwork@48f8463...9ff9b57 - moby/libnetwork#2368 (windows) Pick a random host port if the user does not specify a host port Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 7f2c564b23377e1c69bc06e40fef1a459d6f51b5 Component: engine
For overlay, l2bridge, and l2tunnel, if the user does not specify a host port, windows driver will select a random port for them. This matches linux behavior.
For ics and nat networks the windows OS will choose the port.
Signed-off-by: Pradip Dhara pradipd@microsoft.com