diff --git a/src/lib/server/stacks.ts b/src/lib/server/stacks.ts index 348ddc1..166231b 100644 --- a/src/lib/server/stacks.ts +++ b/src/lib/server/stacks.ts @@ -3,6 +3,7 @@ * * Provides compose-first stack operations for internal, git, and external stacks. * All lifecycle operations use docker compose commands. + * v1.0.20 */ import { existsSync, mkdirSync, rmSync, readdirSync, cpSync, statSync, unlinkSync, renameSync, readFileSync, writeFileSync } from 'node:fs'; diff --git a/src/routes/api/self-update/+server.ts b/src/routes/api/self-update/+server.ts index 5c44f7c..f90d120 100644 --- a/src/routes/api/self-update/+server.ts +++ b/src/routes/api/self-update/+server.ts @@ -130,6 +130,12 @@ function buildCreateConfig(inspectData: any, newImage: string): any { // Clear MacAddress for Docker API < 1.44 compatibility delete createConfig.MacAddress; + // Clear Entrypoint and Cmd so the new image's defaults are used. + // This prevents carrying over a stale entrypoint from a previous runtime + // (e.g. Bun's docker-entrypoint.sh → Node.js docker-entrypoint-node.sh). + delete createConfig.Entrypoint; + delete createConfig.Cmd; + // Clear Hostname so Docker assigns the new container's own ID // Otherwise the old container's hostname is inherited, breaking self-identification delete createConfig.Hostname;