diff --git a/src/utils/DockerUtil.js b/src/utils/DockerUtil.js index 245ea8b244..cf4b817009 100644 --- a/src/utils/DockerUtil.js +++ b/src/utils/DockerUtil.js @@ -35,11 +35,7 @@ var DockerUtil = { if (ip.indexOf('local') !== -1) { try { if (util.isWindows()) { - this.client = new dockerode({ - protocol: 'http', - host: ip, - port: 2375 - }); + this.client = new dockerode({socketPath: '//./pipe/docker_engine'}); } else { this.client = new dockerode({socketPath: '/var/run/docker.sock'}); } diff --git a/src/utils/Util.js b/src/utils/Util.js index 3545237e10..0071259a06 100644 --- a/src/utils/Util.js +++ b/src/utils/Util.js @@ -43,7 +43,7 @@ module.exports = { if (this.native === null) { if (this.isWindows()) { this.native = http.get({ - url: `http:////./pipe/docker_engine/v1.23/version` + url: `http:////./pipe/docker_engine/version` }, (response) => { if (response.statusCode !== 200 ) { return false;