Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 29, 2024 via pnpm

dockerode 3.3.5

Docker Remote API module.
Package summary
Share
2
issues
2
high severity
meta
2
5
licenses
21
MIT
5
ISC
3
Apache-2.0
3
other licenses
BSD-3-Clause
2
Unlicense
1
Package created
1 Sep 2013
Version published
12 Mar 2023
Maintainers
1
Total deps
32
Direct deps
3
License
Apache-2.0

Issues

2

2 high severity issues

high
via: docker-modem@3.0.8
via: docker-modem@3.0.8
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
21 Packages, Including:
asn1@0.2.6
base64-js@1.5.1
bl@4.1.0
buffer@5.7.1
buildcheck@0.0.6
cpu-features@0.0.9
debug@4.3.4
end-of-stream@1.4.4
fs-constants@1.0.0
mkdirp-classic@0.5.3
ms@2.1.2
nan@2.19.0
pump@3.0.0
readable-stream@3.6.2
safe-buffer@5.2.1
safer-buffer@2.1.2
ssh2@1.15.0
string_decoder@1.3.0
tar-fs@2.0.1
tar-stream@2.2.0
util-deprecate@1.0.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
5 Packages, Including:
chownr@1.1.4
inherits@2.0.4
once@1.4.0
split-ca@1.0.1
wrappy@1.0.2

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
3 Packages, Including:
@balena/dockerignore@1.0.2
docker-modem@3.0.8
dockerode@3.3.5

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
bcrypt-pbkdf@1.0.2
ieee754@1.2.1

The Unlicense

Public Domain
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
private-use
modify
Cannot
include-copyright
hold-liable
Must
1 Packages, Including:
tweetnacl@0.14.5
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of dockerode 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@balena/dockerignore1.0.212.08 kBApache-2.0
prod
docker-modem3.0.812.41 kBApache-2.0
prod
2
tar-fs2.0.17.11 kBMIT
prod

Visualizations

Frequently Asked Questions

What does dockerode do?

Dockerode is a Node.js module that provides an interface to interact with the Docker Remote API programmatically. It supports all Docker Remote API features, including using promises or callbacks for handling asynchronous operations. Dockerode also works with Docker streams, allowing direct manipulation and handling. It emphasizes a feature-rich environment, adhering to Docker changes quickly and effortlessly.

How do you use dockerode?

To use Dockerode, you'll first need to install it using npm as follows:

npm install dockerode

You can then import Dockerode into a JavaScript file and initiate Dockerode with various options. Here's how you can do this in your code:

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

You can also specify different options while initiating Dockerode. For example:

var docker = new Docker({
  host: 'http://mydockerhost.com',
  port: process.env.DOCKER_PORT || 2375,
  ca: fs.readFileSync('ca.pem'),
  cert: fs.readFileSync('cert.pem'),
  key: fs.readFileSync('key.pem'),
  version: 'v1.25' // must correspond to Docker API version
});

Manipulating a Docker container would look like this:

// Create a container entity. Does not query API.
var container = docker.getContainer('71501a8ab0f8');

container.start(function (err, data) {
  console.log(data);
});

container.remove(function (err, data) {
  console.log(data);
});

You can also operate on containers using promise-based approaches. Dockerode accommodates both styles, aiming to make Docker operations as flexible as possible for developers.

Where are the dockerode docs?

The comprehensive Dockerode documentation can be found on the Docker API documentation page: https://docs.docker.com/engine/api/latest/. Detailed information about the Docker functions that Dockerode supports can be found right in the Dockerode readme file in the 'Documentation' section. Examples are also available to provide more specific use cases.