Skip to content

Commit 0504d6a

Browse files
Log socket path when in Docker wormhole
1 parent 6f8b52f commit 0504d6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docker-client-factory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ export class DockerClientFactory {
2525

2626
private static async getHost(dockerode: Dockerode): Promise<Host> {
2727
const modem = dockerode.modem;
28+
const socketPath = modem.socketPath;
2829

2930
if (process.env.DOCKER_HOST) {
3031
log.info(`Detected DOCKER_HOST environment variable: ${process.env.DOCKER_HOST}`);
3132
}
3233

3334
if (modem.host) {
3435
const host = modem.host;
35-
log.info(`Using Docker host from modem: ${host}`);
36+
log.info(`Using Docker host from modem: ${host}, socket path: ${socketPath}`);
3637
return host;
3738
} else {
38-
const socketPath = modem.socketPath;
3939
if (!fs.existsSync("/.dockerenv")) {
4040
const host = "localhost";
4141
log.info(`Using default Docker host: ${host}, socket path: ${socketPath}`);

0 commit comments

Comments
 (0)