direct-remote staging pulls the alpine helper image when it's missing

This commit is contained in:
Jarek Krochmalski committed 2026-08-22 09:09:30 +02:00
1 parent ca2cb80c3f
commit 6f087a3c2a
1 file changed
+5
+5
View File
@@ -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) },