Compare commits

..

2 Commits

Author SHA1 Message Date
dc4074340d 1.0.108 2024-02-02 16:55:52 +01:00
001e870643 fix(core): update 2024-02-02 16:55:51 +01:00
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@apiclient.xyz/docker",
"version": "1.0.107",
"version": "1.0.108",
"description": "easy communication with docker remote api from node, TypeScript ready",
"private": false,
"main": "dist_ts/index.js",

View File

@ -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'
}

View File

@ -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;