docker(install): don't use local system resolver with lima
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -300,11 +300,18 @@ probes:
|
||||
hint: See "/var/log/cloud-init-output.log". in the guest
|
||||
|
||||
hostResolver:
|
||||
# Don't use local system resolver
|
||||
enabled: false
|
||||
# hostResolver.hosts requires lima 0.8.3 or later. Names defined here will also
|
||||
# resolve inside containers, and not just inside the VM itself.
|
||||
hosts:
|
||||
host.docker.internal: host.lima.internal
|
||||
|
||||
# Use custom DNS servers instead of the host's DNS settings
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
|
||||
portForwards:
|
||||
- guestSocket: "/var/run/docker.sock"
|
||||
hostSocket: "{{dockerSock}}"
|
||||
|
||||
Reference in New Issue
Block a user