dank-ai 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/docker/manager.js +4 -4
- package/package.json +1 -1
package/lib/docker/manager.js
CHANGED
|
@@ -190,7 +190,7 @@ class DockerManager {
|
|
|
190
190
|
// Approach 1: Direct installation
|
|
191
191
|
try {
|
|
192
192
|
this.logger.info('Attempting direct installation...');
|
|
193
|
-
const command1 = `${homebrewPath} install
|
|
193
|
+
const command1 = `${homebrewPath} install cask docker`;
|
|
194
194
|
this.logger.info(`🔧 About to run command: ${command1}`);
|
|
195
195
|
await this.runCommandWithEnv(command1, 'Installing Docker Desktop via Homebrew');
|
|
196
196
|
installSuccess = true;
|
|
@@ -200,7 +200,7 @@ class DockerManager {
|
|
|
200
200
|
// Approach 2: Try with --force flag
|
|
201
201
|
try {
|
|
202
202
|
this.logger.info('Attempting installation with --force flag...');
|
|
203
|
-
const command2 = `${homebrewPath} install
|
|
203
|
+
const command2 = `${homebrewPath} install cask --force docker`;
|
|
204
204
|
this.logger.info(`🔧 About to run command: ${command2}`);
|
|
205
205
|
await this.runCommandWithEnv(command2, 'Installing Docker Desktop via Homebrew (force)');
|
|
206
206
|
installSuccess = true;
|
|
@@ -210,7 +210,7 @@ class DockerManager {
|
|
|
210
210
|
// Approach 3: Try with --no-quarantine flag
|
|
211
211
|
try {
|
|
212
212
|
this.logger.info('Attempting installation with --no-quarantine flag...');
|
|
213
|
-
const command3 = `${homebrewPath} install
|
|
213
|
+
const command3 = `${homebrewPath} install cask --no-quarantine docker`;
|
|
214
214
|
this.logger.info(`🔧 About to run command: ${command3}`);
|
|
215
215
|
await this.runCommandWithEnv(command3, 'Installing Docker Desktop via Homebrew (no-quarantine)');
|
|
216
216
|
installSuccess = true;
|
|
@@ -238,7 +238,7 @@ class DockerManager {
|
|
|
238
238
|
this.logger.error(`Installation error: ${error.message}`);
|
|
239
239
|
this.logger.info('You can also try installing Docker Desktop manually:');
|
|
240
240
|
this.logger.info('1. Download from: https://www.docker.com/products/docker-desktop/');
|
|
241
|
-
this.logger.info('2. Or try: brew install
|
|
241
|
+
this.logger.info('2. Or try: brew install cask docker');
|
|
242
242
|
throw new Error('Docker Desktop installation via Homebrew failed. Please install manually from https://www.docker.com/products/docker-desktop/');
|
|
243
243
|
}
|
|
244
244
|
} else {
|