-
Notifications
You must be signed in to change notification settings - Fork 309
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
WSL: Use dnsmasq #1302
WSL: Use dnsmasq #1302
Conversation
This PR defines the names We should use We should just add |
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.
Bump WSL distro to v0.14 and make sure this PR isn't merged until after #1429 is merged.
scripts/download/wsl.mjs
Outdated
@@ -8,7 +8,7 @@ import path from 'path'; | |||
import { download } from '../lib/download.mjs'; | |||
|
|||
export default async function main() { | |||
const v = '0.12'; | |||
const v = '0.13'; |
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.
const v = '0.13'; | |
const v = '0.14'; |
Assuming #1429 will get merged before this PR means we will be at v0.12.1
, which includes a nerdctl
bump to 0.16.1 for both the Lima Alpine image and the WSL distro.
Switching the WSL distro to v0.13
afterwards would revert nerdctl
for WSL to 0.16.0 while keeping it for the Alpine ISO at 0.16.1.
This stops copying the wsl.conf over from the main WSL distribution, so that we can provide different contents in the main one. Signed-off-by: Mark Yen <mark.yen@suse.com>
This edits /etc/hosts on the main distribution to add entries for host.docker.internal and host.minikube.internal for compatibility. We copy over the /etc/hosts file in the data distribution (which we still ask WSL to generate), and then add lines we need. Note that this doesn't appear to actually affect any containers, as moby uses an internal file to generate /etc/hosts. Signed-off-by: Mark Yen <mark.yen@suse.com>
This allows us to add entries to /etc/hosts and allow containers to resolve them. Signed-off-by: Mark Yen <mark.yen@suse.com>
Signed-off-by: Mark Yen <mark.yen@suse.com>
Also drop minikube. rancher-sandbox#1302 (comment) Signed-off-by: Mark Yen <mark.yen@suse.com>
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.
One change to align with a recent merged PR and a nit or two
Signed-off-by: Mark Yen <mark.yen@suse.com>
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.
Looks fine now
This adds dnsmasq on Windows, and uses it for the rancher-desktop WSL distribution. It mostly forwards to the normal nameserver (by reading the
resolv.conf
from the data distribution), but additionally interprets/etc/hosts
where we add the fake hostnameshost.docker.internal
andhost.minikube.internal
.Requires rancher-sandbox/rancher-desktop-wsl-distro#23.
Fixes #893.