1.0.0 • Published 7 years ago
docker-service-ls v1.0.0
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
License
1.0.0
7 years ago