From c8d8ca973633ea714dbd0741b328a8cb82f82551 Mon Sep 17 00:00:00 2001 From: Page Date: Thu, 3 Apr 2014 15:02:14 +0100 Subject: [PATCH] Use /run/docker.sock for docker, since it will work when run on a host (and can now be used in a container to access the host docker as well) --- src/application.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/application.coffee b/src/application.coffee index b4b79b4d..77495e1b 100644 --- a/src/application.coffee +++ b/src/application.coffee @@ -9,7 +9,7 @@ Promise = require 'bluebird' request = Promise.promisify require 'request' JSONStream = require 'JSONStream' -docker = Promise.promisifyAll(new Docker(socketPath: '/hostrun/docker.sock')) +docker = Promise.promisifyAll(new Docker(socketPath: '/run/docker.sock')) # Hack dockerode to promisify internal classes' prototypes Promise.promisifyAll(docker.getImage().__proto__) Promise.promisifyAll(docker.getContainer().__proto__) @@ -36,7 +36,7 @@ exports.start = start = (app) -> options = method: 'POST' path: "/v1.8/images/create?fromImage=#{app}" - socketPath: '/hostrun/docker.sock' + socketPath: '/run/docker.sock' req = http.request options, (res) -> if res.headers['content-type'] is 'application/json'