Skip to content

Commit 8b2507e

Browse files
mook-asjandubois
authored andcommitted
moby: Don't set DOCKER_HOST in current process
We were accidentally setting DOCKER_HOST in the current process when spawning the docker CLI; fix things so that no longer happens. This fixes an issue where we'd report an diagnostics issue because that is set. Signed-off-by: Mark Yen <mark.yen@suse.com> (cherry picked from commit 105025f)
1 parent f2bf8f1 commit 8b2507e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/rancher-desktop/backend/containerClient/mobyClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ export class MobyClient implements ContainerEngineClient {
502502
dirsToAdd.push(executableDir);
503503
}
504504

505-
const opts = _.merge({ env: process.env }, options ?? {}, {
505+
const opts = _.merge({ env: _.merge({}, process.env) }, options ?? {}, {
506506
env: {
507507
DOCKER_HOST: this.endpoint,
508508
PATH: `${ process.env.PATH }${ path.delimiter }${ dirsToAdd.join(path.delimiter) }`,

0 commit comments

Comments
 (0)