Skip to content

Commit

Permalink
fix: disable docker hints for all operations
Browse files Browse the repository at this point in the history
  • Loading branch information
anacierdem committed Oct 19, 2024
1 parent 5654729 commit 37a9397
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions modules/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ function spawnProcess(
enableOutTTY ? 'inherit' : 'pipe',
enableErrorTTY ? 'inherit' : 'pipe',
],
env: {
// Prevent the annoying docker "What's next?" message. It messes up everything.
DOCKER_CLI_HINTS: 'false',
},
...spawnOptions,
});

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

0 comments on commit 37a9397

Please sign in to comment.