Skip to content

Commit

Permalink
adding docker path in Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
damshenas authored Jun 20, 2024
1 parent c826d8f commit c2f2e4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cdk-assets/lib/private/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,14 @@ export class DockerFactory {
}

function getDockerCmd(): string {
return process.env.CDK_DOCKER ?? 'docker';
return process.env.CDK_DOCKER ?? getDockerCmdMac() ?? 'docker';
}

function flatten(x: string[][]) {
return Array.prototype.concat([], ...x);
}

function getDockerCmdMac(): string {
const isMac = os.platform() === 'darwin';
if ( isMac ) return '/Applications/Docker.app/Contents/Resources/bin/docker'
}

0 comments on commit c2f2e4f

Please sign in to comment.