Typo in docker socket path

This commit is contained in:
Girish Ramakrishnan
2019-12-04 14:37:00 -08:00
parent 53e39f571c
commit 3e08e7c653
+3 -2
View File
@@ -51,7 +51,8 @@ var addons = require('./addons.js'),
const CLEARVOLUME_CMD = path.join(__dirname, 'scripts/clearvolume.sh'),
MKDIRVOLUME_CMD = path.join(__dirname, 'scripts/mkdirvolume.sh');
const gConnection = new Docker({ socketPath: '/var/run/docker.sock' });
const DOCKER_SOCKET_PATH = '/var/run/docker.sock';
const gConnection = new Docker({ socketPath: DOCKER_SOCKET_PATH });
function debugApp(app) {
assert(typeof app === 'object');
@@ -102,7 +103,7 @@ function ping(callback) {
assert.strictEqual(typeof callback, 'function');
// do not let the request linger
const connection = new Docker({ socketPath: '/var/run/gConnection.sock', timeout: 1000 });
const connection = new Docker({ socketPath: DOCKER_SOCKET_PATH, timeout: 1000 });
connection.ping(function (error, result) {
if (error) return callback(new BoxError(BoxError.DOCKER_ERROR, error));