From baa79adaa7c3319a85511170f5c320bebdb708b4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 7 Oct 2017 01:04:17 +0400 Subject: Normalization of the path on the launched OS --- src/lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib') 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'); } /** -- cgit v1.2.3