Socket
Socket
Sign inDemoInstall

dockerode

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dockerode - npm Package Compare versions

Comparing version 2.2.8 to 2.2.9

33

lib/docker.js

@@ -91,2 +91,3 @@ var EventEmitter = require('events').EventEmitter,

file: file,
isStream: true,
statusCodes: {

@@ -104,2 +105,34 @@ 200: true,

/**
* Import image from a tar archive
* @param {String} file File
* @param {Object} opts Options (optional)
* @param {Function} callback Callback
*/
Docker.prototype.importImage = function(file, opts, callback) {
if (!callback && typeof opts === 'function') {
callback = opts;
opts = {};
}
opts.fromSrc = '-'
var self = this;
var optsf = {
path: '/images/create?',
method: 'POST',
options: opts,
file: file,
isStream: true,
statusCodes: {
200: true,
500: 'server error'
}
};
this.modem.dial(optsf, function(err, data) {
callback(err, data);
});
};
/**
* Verifies auth

@@ -106,0 +139,0 @@ * @param {Object} opts Options

2

package.json
{
"name": "dockerode",
"description": "Docker Remote API module.",
"version": "2.2.8",
"version": "2.2.9",
"author": "Pedro Dias <petermdias@gmail.com>",

@@ -6,0 +6,0 @@ "maintainers": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc