Collect docker container events
npm install docker-events --save
var de = require('docker-events');
var through = require('through2');
de({}).pipe(through.obj(function(chunk, enc, cb) {
this.push(JSON.stringify(chunk));
this.push('\n');
cb();
})).pipe(process.stdout);
Sponsored by nearForm.
MIT