New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

dkr

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dkr

A library to provide Docker command line API for Node.js

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

dkr

dkr is a library to provide Docker command line API for Node.js

Dependencies

This library depends on docker command line tool.
You need to install docker on your machine to use the library.

Installation

npm install -S dkr

Usage

ps

var dkr = require('dkr');

dkr.ps()
  .then(function(containers) {
    console.log(containers);
  })
  .catch(function(e) {
    console.error(e);
  });

run

var dkr = require('dkr');

dkr.run('node:5.7.0', {
    detach: true,
    port: '8888:8888',
    name: 'my-node',
    command: '',
    args: [
    ]
  })
  .then(function(containerId) {
    console.log(containerId);
  })
  .catch(function(e) {
    console.error(e);
  });

rm

var dkr = require('dkr');

dkr.rm(containerId, {
    force: true
  })
  then(function(containerId) {
    console.log(containerId);
  })
  .catch(function(e) {
    console.error(e);
  });

Keywords

Docker

FAQs

Package last updated on 25 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts