dockerode-promise

0.1.0 • Public • Published

Dockerode Promise

Effectively all dockerode async operations which use callbacks should now use a promise... Its important that dockerode is a peerDependency as dockerode promise will not include one of its own.

Usage

var Docker = require('dockerode-promise');
 
var docker = new Docker({ ... });
 
docker.run('ubuntu', ['/bin/bash', '-c', 'echo "xx"']).then(
  function (output) {
    // output.result
    // output.container
  }
);
 

Readme

Keywords

Package Sidebar

Install

npm i dockerode-promise

Weekly Downloads

8

Version

0.1.0

License

Apache2

Last publish

Collaborators

  • jwhitlock
  • bsieber
  • pmoore
  • taskcluster-bot
  • jonasfj