-
Notifications
You must be signed in to change notification settings - Fork 2k
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
client checks kernel module in /sys/module for WSL2 bridge networking #17306
Conversation
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.
Thanks for the contribution @jeteve!
I left some minor comments about error handling and variable naming but I was able to get this to work after the small adjustment described in microsoft/WSL#6044 (comment) to enable legacy mode for iptables
. Did you run into this as well?
I was also not able to get the docker
driver to work (the network
pre-run hook fails with the error failed to Statfs "/var/run/docker/netns/...
), but that looks like a fix for another time 😄
Using the exec
driver in bridge
mode worked well 👍
I will also ping @shoenig for another check since he has more experience on this area than me.
bd7c4f6
to
ee72bea
Compare
Hi @lgfa29 , thanks a lot for your review. I've pushed some amended code. |
…bridge networking
ee72bea
to
538a707
Compare
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.
Changes look good to me, thanks @jeteve!
I just pushed a commit to add a CHANGELOG entry.
Thanks a lot @lgfa29 , and apologies for skipping the CHANGELOG myself. I see all checks are good except 'Vercel – nomad'. I assume unblocking this is part of your release flow? Thanks! |
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!
I tried to approve it a few times but it doesn't seem to be working 😅 But that's not a problem for this PR. |
This is a solution for issue #17305 and will enable nomad to have greater chances to detect the
bridge
kernel module on WSL2 hosts, thus enabling bridge networking.Closes #17305