mirror of
https://github.com/Finsys/dockhand.git
synced 2026-06-17 19:09:33 +03:00
v1.0.20
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user