-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Fix long startup on windows, with non-hns governed Hyper-V networks #37774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix long startup on windows, with non-hns governed Hyper-V networks #37774
Conversation
Similar to a related issue where previously, private Hyper-V networks would each add 15 secs to the daemon startup, non-hns governed internal networks are reported by hns as network type "internal" which is not mapped to any network plugin (and thus we get the same plugin load retry loop as before). This issue hits Docker for Desktop because we setup such a network for the Linux VM communication. Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
SGTM, but I'd like our networking team to verify too. @dineshgovindasamy, PTAL. |
ping @dineshgovindasamy, any feedback on this one ? |
ping @vdemeester this PR needs a bit of shaking. On Docker Desktop for Windows it adds 15 sec startup time per Hyper-V network not managed by HNS (on Windows 10 build 1803+). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #37774 +/- ##
==========================================
- Coverage 36.09% 35.64% -0.45%
==========================================
Files 610 610
Lines 45115 46347 +1232
==========================================
+ Hits 16284 16521 +237
- Misses 26591 27559 +968
- Partials 2240 2267 +27 |
LGTM |
Similar to a related issue where previously, private Hyper-V networks
would each add 15 secs to the daemon startup (see #33053), non-hns governed internal
networks are reported by hns as network type "internal" which is not
mapped to any network plugin (and thus we get the same plugin load retry
loop as before).
This issue hits Docker for Desktop because we setup such a network for
the Linux VM communication.
- What I did
Added "internal" in the list of network plugins skipped on windows startup sequence
- How I did it
Just modified an existing "if" block handling the "private" network type
- How to verify it