Skip to content

Commit

Permalink
fix: disable docker's What's new message
Browse files Browse the repository at this point in the history
It was messing up the docker "container is not live detection"
  • Loading branch information
anacierdem committed Oct 18, 2024
1 parent 30d8461 commit 22740c0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions modules/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ const dockerExec = /** @type {DockerExec} */ (
workDirIndex >= 0 ? finalDockerParams[workDirIndex + 1] : undefined;
return spawnProcess(finalCmdWithParams[0], finalCmdWithParams.slice(1), {
...options,
spawnOptions: { cwd: workDir, ...options?.spawnOptions },
spawnOptions: {
cwd: workDir,
...options?.spawnOptions,
},
});
}

Expand Down Expand Up @@ -345,7 +348,17 @@ const dockerExec = /** @type {DockerExec} */ (
libdragonInfo.containerId,
...finalCmdWithParams,
],
options
{
...options,
spawnOptions: {
env: {
// Prevent the annoyin docker "What's next?" message. It messes up everything.
DOCKER_CLI_HINTS: 'false',
...options?.spawnOptions?.env,
},
...options?.spawnOptions,
},
}
);
}
);
Expand Down

0 comments on commit 22740c0

Please sign in to comment.