mirror of
https://github.com/valentineus/simple-container.git
synced 2025-04-29 00:51:25 +03:00
Normalization of the path on the launched OS
This commit is contained in:
parent
0b1fbd32c0
commit
baa79adaa7
@ -1,3 +1,4 @@
|
|||||||
|
import { normalize } from 'path';
|
||||||
import createDebug from 'debug';
|
import createDebug from 'debug';
|
||||||
import Docker from 'dockerode';
|
import Docker from 'dockerode';
|
||||||
import { statSync } from 'fs';
|
import { statSync } from 'fs';
|
||||||
@ -183,7 +184,7 @@ export default class Containers {
|
|||||||
* @description Getting the system socket.
|
* @description Getting the system socket.
|
||||||
*/
|
*/
|
||||||
_getSocket() {
|
_getSocket() {
|
||||||
return process.env.DOCKER_SOCKET || '/var/run/docker.sock';
|
return process.env.DOCKER_SOCKET || normalize('/var/run/docker.sock');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user