diff --git a/lib/docker.js b/lib/docker.js index 656bf2c..e0ad2fe 100644 --- a/lib/docker.js +++ b/lib/docker.js @@ -475,7 +475,10 @@ Docker.prototype.pull = function(repoTag, opts, callback, auth) { args.opts.fromImage = imageSrc.repository; args.opts.tag = imageSrc.tag; - var argsf = [auth, args.opts, args.callback]; + var argsf = [args.opts, args.callback]; + if(auth) { + argsf = [auth, args.opts, args.callback]; + } return this.createImage.apply(this, argsf); }; diff --git a/package.json b/package.json index bf0d2fa..9f19636 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dockerode", "description": "Docker Remote API module.", - "version": "2.2.6", + "version": "2.2.7", "author": "Pedro Dias ", "maintainers": [ "apocas "