Skip to content

Commit

Permalink
Merge pull request #189 from lmoran/master
Browse files Browse the repository at this point in the history
Added authorization to "pull"
  • Loading branch information
apocas committed Nov 26, 2015
2 parents a91c1f0 + b1cb3eb commit 6cba150
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.vagrant
node_modules
npm-debug.log
docker-modem/
5 changes: 3 additions & 2 deletions lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,16 +464,17 @@ Docker.prototype.getEvents = function(opts, callback) {
* @param {String} repoTag Repository tag
* @param {Object} opts Options (optional)
* @param {Function} callback Callback
* @param {Object} auth Authentication (optional)
* @return {Object} Image
*/
Docker.prototype.pull = function(repoTag, opts, callback) {
Docker.prototype.pull = function(repoTag, opts, callback, auth) {
var args = util.processArgs(opts, callback);

var imageSrc = util.parseRepositoryTag(repoTag);
args.opts.fromImage = imageSrc.repository;
args.opts.tag = imageSrc.tag;

var argsf = [args.opts, args.callback];
var argsf = [auth, args.opts, args.callback];
return this.createImage.apply(this, argsf);
};

Expand Down

0 comments on commit 6cba150

Please sign in to comment.