Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion lib/higher-docker-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const os = require('os');
const selectn = require('selectn');
const debug = require('debug')('HigherDockerManager:');

const docker = new Docker({
let docker = new Docker({
socketPath: '/var/run/docker.sock'
});

Expand Down Expand Up @@ -48,6 +48,7 @@ class HigherDockerManager {
* @return {Promise} Promise returning pulled image
* @api public
*/

static pullImage(auth, givenName, givenTag) {
const { name, tag } = HigherDockerManager._getNameTag(givenName, givenTag);

Expand Down Expand Up @@ -402,6 +403,14 @@ class HigherDockerManager {
}))
.then(HigherDockerManager._processContainerOutputStream);
}
/**
* Changes docker configuration.
* @param {Object} `conf` Docker API config object see node-docker-api for reference.
* @api public
*/
static setDocker(conf) {
docker = new Docker(conf)
}

/**
* Processes the output stream of a container.
Expand Down