From 6f087a3c2a0936e06afe00ae634086bf6e2a57eb Mon Sep 17 00:00:00 2001 From: Jarek Krochmalski Date: Sat, 22 Aug 2026 09:09:30 +0200 Subject: [PATCH] direct-remote staging pulls the alpine helper image when it's missing --- src/lib/server/docker.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/server/docker.ts b/src/lib/server/docker.ts index ee18644..88bc33d 100644 --- a/src/lib/server/docker.ts +++ b/src/lib/server/docker.ts @@ -5049,6 +5049,11 @@ export async function runContainerWithStreaming(options: { containerConfig.HostConfig.Dns = options.dns; } + // A remote daemon may not have the helper image (e.g. alpine:latest on a fresh + // direct-remote host), and /containers/create does NOT auto-pull - it 404s with + // "No such image". Pull it first so the stager/helper works out of the box (#1442). + await ensureImagePresent(options.image, options.envId); + const createResult = await dockerJsonRequest<{ Id: string }>( `/containers/create?name=${encodeURIComponent(containerName)}`, { method: 'POST', body: JSON.stringify(containerConfig) },