docker-service-ls
v1.0.0
Published
Lists services running inside a docker swarm using the docker api
Downloads
1
Readme
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
Installation
npm i docker-service-ls