aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-07 00:04:17 +0300
committerValentin Popov <info@valentineus.link>2017-10-07 00:04:17 +0300
commitbaa79adaa7c3319a85511170f5c320bebdb708b4 (patch)
tree15d14d1bfd3bf84602ee9030c452ad792de9b94b
parent0b1fbd32c0c2b44cbc494b523c00cb0b9bf8aedd (diff)
downloadsimple-container-baa79adaa7c3319a85511170f5c320bebdb708b4.tar.xz
simple-container-baa79adaa7c3319a85511170f5c320bebdb708b4.zip
Normalization of the path on the launched OS
-rw-r--r--src/lib/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/index.js b/src/lib/index.js
index 9e86cc7..5332bb4 100644
--- a/src/lib/index.js
+++ b/src/lib/index.js
@@ -1,3 +1,4 @@
+import { normalize } from 'path';
import createDebug from 'debug';
import Docker from 'dockerode';
import { statSync } from 'fs';
@@ -183,7 +184,7 @@ export default class Containers {
* @description Getting the system socket.
*/
_getSocket() {
- return process.env.DOCKER_SOCKET || '/var/run/docker.sock';
+ return process.env.DOCKER_SOCKET || normalize('/var/run/docker.sock');
}
/**