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 3.2.0 to 3.2.1

8

lib/docker.js

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

zlib = require('zlib'),
fs = require('fs'),
concat = require('concat-stream'),
path = require('path'),
Container = require('./container'),

@@ -255,3 +252,2 @@ Image = require('./image'),

var content;
var pack = tar.pack();

@@ -306,3 +302,3 @@ if (!callback && typeof opts === 'function') {

if (file && file.context) {
pack = tar.pack(file.context, {
var pack = tar.pack(file.context, {
entries: file.src

@@ -895,3 +891,3 @@ });

if (args.callback === undefined) {
if (callback === undefined) {
return new this.modem.Promise(function(resolve, reject) {

@@ -898,0 +894,0 @@ self.modem.dial(optsf, function(err, data) {

{
"name": "dockerode",
"description": "Docker Remote API module.",
"version": "3.2.0",
"version": "3.2.1",
"author": "Pedro Dias <petermdias@gmail.com>",

@@ -18,3 +18,2 @@ "maintainers": [

"dependencies": {
"concat-stream": "~2.0.0",
"docker-modem": "^2.1.0",

@@ -21,0 +20,0 @@ "tar-fs": "~2.0.1"

@@ -131,2 +131,3 @@ # dockerode [![Build Status](https://travis-ci.org/apocas/dockerode.svg?branch=master)](https://travis-ci.org/apocas/dockerode)

### Building an Image
Context: provides the path to the Dockerfile. Additionaly files that are involved in the build *must* be explicitly mentioned in src array, since they are sent to a temp env to build. Example: file for COPY command are extracted from that temporary environment.

@@ -204,3 +205,3 @@ ``` js

There is also support for [HTTP connection hijacking](https://docs.docker.com/engine/reference/api/docker_remote_api_v1.22/#3-2-hijacking),
There is also support for [HTTP connection hijacking](https://docs.docker.com/engine/api/v1.22/#32-hijacking),
which allows for cleaner interactions with commands that work with stdin and stdout separately.

@@ -233,3 +234,3 @@

* `create_options` - (optional) Options used for container creation. Refer to the [DockerEngine ContainerCreate documentation](https://docs.docker.com/engine/api/v1.37/#operation/ContainerCreate) for the possible values
* `start_options` - (optional) Options used for container start. Refer to the [DockerEngine ContainerCreate documentation](hhttps://docs.docker.com/engine/api/v1.37/#operation/ContainerStart) for the possible values
* `start_options` - (optional) Options used for container start. Refer to the [DockerEngine ContainerStart documentation](https://docs.docker.com/engine/api/v1.37/#operation/ContainerStart) for the possible values
* `callback` - callback called when execution ends (optional, promise will be returned if not used).

@@ -236,0 +237,0 @@

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