aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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');
}
/**