npm.io
1.0.1 • Published 11 years agoCLI

docker-ps

Licence
MIT
Version
1.0.1
Deps
6
Vulns
0
Weekly
0
Stars
7

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