From e85f11c5bdfdf8feb0e60b50a10b3ea1d395db63 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 3 Nov 2025 11:09:16 +0100 Subject: [PATCH 1/3] docker(install): don't use local system resolver with lima Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/docker/assets.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/docker/assets.ts b/src/docker/assets.ts index 1ba105a..e795d7b 100644 --- a/src/docker/assets.ts +++ b/src/docker/assets.ts @@ -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}}" From bbd652b0875952b0d71a86b93dc650c96ef8e5b8 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 3 Nov 2025 11:39:31 +0100 Subject: [PATCH 2/3] docker(install): increase dockerd startup timeout Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/docker/assets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docker/assets.ts b/src/docker/assets.ts index e795d7b..89b7c26 100644 --- a/src/docker/assets.ts +++ b/src/docker/assets.ts @@ -293,7 +293,7 @@ probes: #!/bin/bash set -eux -o pipefail # Don't check for docker CLI as it's not installed in the VM (only on the host) - if ! timeout 30s bash -c "until pgrep dockerd; do sleep 3; done"; then + if ! timeout 60s bash -c "until pgrep dockerd; do sleep 3; done"; then echo >&2 "dockerd is not running" exit 1 fi From 3588cc8ad4d29c663dfa6a4e2f471e437043ea33 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 3 Nov 2025 11:39:42 +0100 Subject: [PATCH 3/3] docker(install): increase lima start timeout Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/docker/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docker/install.ts b/src/docker/install.ts index 7984199..48e12a8 100644 --- a/src/docker/install.ts +++ b/src/docker/install.ts @@ -331,7 +331,7 @@ export class Install { }; await core.group('Starting lima instance', async () => { - const limaStartArgs = ['start', `--name=${this.limaInstanceName}`]; + const limaStartArgs = ['start', `--name=${this.limaInstanceName}`, `--timeout=15m`]; if (process.env.LIMA_START_ARGS) { limaStartArgs.push(process.env.LIMA_START_ARGS); }