testcontainers 8.13.1-beta.4 → 8.13.2
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.
|
@@ -32,14 +32,15 @@ const getDockerClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
32
32
|
logger_1.log.debug(`Found applicable Docker client strategy: ${strategy.getName()}`);
|
|
33
33
|
const { uri, dockerode } = yield strategy.initialise();
|
|
34
34
|
logger_1.log.debug(`Testing Docker client strategy URI: ${uri}`);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
if (yield isDockerDaemonReachable(dockerode)) {
|
|
36
|
+
const host = yield resolveHost(dockerode, uri);
|
|
37
|
+
logger_1.log.info(`Using Docker client strategy: ${strategy.getName()}, Docker host: ${host}`);
|
|
38
|
+
(0, log_system_diagnostics_1.logSystemDiagnostics)(dockerode);
|
|
39
|
+
return { host, dockerode };
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
logger_1.log.warn(`Docker client strategy ${strategy.getName()} is not reachable`);
|
|
43
|
+
}
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
throw new Error("No Docker client strategy found");
|