1.0.0 • Published 7 years ago

docker-service-ls v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

docker-service-ls

Lists services running inside a docker swarm using the docker api.

Usage

var ls = require('docker-service-ls')

ls(function (err, services) {
  console.log(services)
})

API

ls(opts, callback(err, services))

Fetches services running inside a docker swarm. opts can contain the following filter values:

  • opts.id: Service ID
  • opts.label: Service Label
  • opts.mode: Service Mode (replicated|global)
  • opts.name: Service Name

api docs

Installation

npm i docker-service-ls

License

MIT