From 001e870643110795da320b56c77a7fc53905a96a Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 2 Feb 2024 16:55:51 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/docker.classes.host.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index c6c7cf0..e59cfd1 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiclient.xyz/docker', - version: '1.0.107', + version: '1.0.108', description: 'easy communication with docker remote api from node, TypeScript ready' } diff --git a/ts/docker.classes.host.ts b/ts/docker.classes.host.ts index b5dd8c9..e8ffd41 100644 --- a/ts/docker.classes.host.ts +++ b/ts/docker.classes.host.ts @@ -34,7 +34,10 @@ export class DockerHost { pathToUse = 'http://unix:/var/run/docker.sock:'; } if (pathToUse.startsWith('unix:///')) { - pathToUse = pathToUse.replace('unix://', 'http://unix:') + ':'; + pathToUse = pathToUse.replace('unix://', 'http://unix:'); + } + if (pathToUse.endsWith('.sock')) { + pathToUse = pathToUse.replace('.sock', '.sock:'); } console.log(`using docker sock at ${pathToUse}`); this.socketPath = pathToUse;