New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

docker-allcontainers

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-allcontainers

Get notified when a new container is started or stopped

latest
Source
npmnpm
Version
0.8.0
Version published
Weekly downloads
424
-15.2%
Maintainers
1
Weekly downloads
 
Created
Source

docker-allcontainers

Get notified when a new container is started or stopped

## Install

npm install docker-allcontainers --save

Usage

var allContainer = require('docker-allcontainers')
var ee = allContainers({
  preheat: true, // emit starts event for all already running containers
  docker: null, // options to Dockerode
  matchByName: /hello/, // optional
  matchByImage: /matteocollina/, //optional
  skipByName: /.*pasteur.*/, //optional
  skipByImage: /.*dockerfile.*/ //optional
})
ee.on('start', function(meta, container) {
  // container is a Dockerode Container
  // see Dockerode API
  console.log('started', meta)
})
ee.on('stop', function(meta, container) {
  // container is a Dockerode Container
  // see Dockerode API
  console.log('stopped', meta)
})

// stop after 5 secs
setTimeout(function() {
  ee.destroy()
}, 5000)

## License

MIT

Keywords

docker

FAQs

Package last updated on 13 Nov 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