Skip to content

Commit e85f11c

Browse files
committed
docker(install): don't use local system resolver with lima
Signed-off-by: CrazyMax <[email protected]>
1 parent b4f8e5f commit e85f11c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/docker/assets.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,18 @@ probes:
300300
hint: See "/var/log/cloud-init-output.log". in the guest
301301
302302
hostResolver:
303+
# Don't use local system resolver
304+
enabled: false
303305
# hostResolver.hosts requires lima 0.8.3 or later. Names defined here will also
304306
# resolve inside containers, and not just inside the VM itself.
305307
hosts:
306308
host.docker.internal: host.lima.internal
307309
310+
# Use custom DNS servers instead of the host's DNS settings
311+
dns:
312+
- 1.1.1.1
313+
- 1.0.0.1
314+
308315
portForwards:
309316
- guestSocket: "/var/run/docker.sock"
310317
hostSocket: "{{dockerSock}}"

0 commit comments

Comments
 (0)