docker-service-ls
Lists services running inside a docker swarm using the docker api.
Usage
var ls =
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
Installation
npm i docker-service-ls