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
|
hint: See "/var/log/cloud-init-output.log". in the guest
|
||||||
|
|
||||||
hostResolver:
|
hostResolver:
|
||||||
|
# Don't use local system resolver
|
||||||
|
enabled: false
|
||||||
# hostResolver.hosts requires lima 0.8.3 or later. Names defined here will also
|
# hostResolver.hosts requires lima 0.8.3 or later. Names defined here will also
|
||||||
# resolve inside containers, and not just inside the VM itself.
|
# resolve inside containers, and not just inside the VM itself.
|
||||||
hosts:
|
hosts:
|
||||||
host.docker.internal: host.lima.internal
|
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:
|
portForwards:
|
||||||
- guestSocket: "/var/run/docker.sock"
|
- guestSocket: "/var/run/docker.sock"
|
||||||
hostSocket: "{{dockerSock}}"
|
hostSocket: "{{dockerSock}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user