fix(core): update
This commit is contained in:
parent
440eb07afb
commit
001e870643
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@apiclient.xyz/docker',
|
name: '@apiclient.xyz/docker',
|
||||||
version: '1.0.107',
|
version: '1.0.108',
|
||||||
description: 'easy communication with docker remote api from node, TypeScript ready'
|
description: 'easy communication with docker remote api from node, TypeScript ready'
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,10 @@ export class DockerHost {
|
|||||||
pathToUse = 'http://unix:/var/run/docker.sock:';
|
pathToUse = 'http://unix:/var/run/docker.sock:';
|
||||||
}
|
}
|
||||||
if (pathToUse.startsWith('unix:///')) {
|
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}`);
|
console.log(`using docker sock at ${pathToUse}`);
|
||||||
this.socketPath = pathToUse;
|
this.socketPath = pathToUse;
|
||||||
|
Loading…
Reference in New Issue
Block a user