1.0.1 • Published 9 years ago

docker-ps v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

docker-ps

Docker ps from node

npm install docker-ps

Usage

var ps = require('docker-ps')

ps(function(err, containers) {
  console.log(containers)
})

// or as a stream

var stream = ps()

stream.on('data', function(container) {
  console.log(container) // print container
})

stream.on('end', function() {
  console.log('no more')
})

Command line tool

There is also a command line tool available

npm install -g docker-ps
docker-ps # prints a process listing
docker-ps --help # print a help message

License

MIT