v1.0.20
This commit is contained in:
1 parent
1066ce9eb1
commit
2829e7c0e9
2 files changed
+7
No files matched your search
@@ -3,6 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Provides compose-first stack operations for internal, git, and external stacks.
|
* Provides compose-first stack operations for internal, git, and external stacks.
|
||||||
* All lifecycle operations use docker compose commands.
|
* All lifecycle operations use docker compose commands.
|
||||||
|
* v1.0.20
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { existsSync, mkdirSync, rmSync, readdirSync, cpSync, statSync, unlinkSync, renameSync, readFileSync, writeFileSync } from 'node:fs';
|
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
|
// Clear MacAddress for Docker API < 1.44 compatibility
|
||||||
delete createConfig.MacAddress;
|
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
|
// Clear Hostname so Docker assigns the new container's own ID
|
||||||
// Otherwise the old container's hostname is inherited, breaking self-identification
|
// Otherwise the old container's hostname is inherited, breaking self-identification
|
||||||
delete createConfig.Hostname;
|
delete createConfig.Hostname;
|
||||||
|
|||||||
Reference in new issue
Block a user