dockerode-promise

Dockerode wrapped in promises

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
dockerode-promise
320.1.09 years ago10 years agoMinified + gzip package size for dockerode-promise in KB

Readme

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
  }
);