Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
dc4074340d | |||
001e870643 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"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",
|
||||||
"private": false,
|
"private": false,
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user