Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docker-gce-discovery

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-gce-discovery

A Node.js library for discovering Docker containers on multiple hosts.

  • 0.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

A Node.js library for discovering Docker containers across Google Cloud Compute machines.

  • Discover GCE machines in zone by tag.
  • Connect to Docker Daemon on each GCE machine, get list of containers, filtered by a label and status.
  • Subscribe to Docker Daemon changes and emit local event on each change in container list.

Usage

To use a Google Cloud service account token is required.

var discoveryInstance = require('docker-gce-discovery').create({
  gceConfig: '..path to service account JSON file or the object itself...',
  zones: ['us-central1-b'], // zones list
  project: null, // your project name
  machineTags: [ 'docker-machine' ], // required tags a GCE machine must have to be monitored
  dockerPort: 2280, // which port on the found machines to use to connect
  watch: true // if enabled watch Docker Daemon for changes
});
discoveryInstance.containers //has containers list.
discoveryInstance.machines //has machines list.

You should to set zones and project name. Look basic-usage.js

Events

  • ready:machines - Machine list available
  • ready:containers - Have container list.
  • ready - Have both machines and containers (or error).

FAQs

Package last updated on 14 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc