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

darklight

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

darklight

Docker discovery and services for swarm

latest
Source
npmnpm
Version
2.1.1
Version published
Maintainers
1
Created
Source

Discovery tool for data center distributed containers

How does it work

Darklight uses NATS library for sharing docker engine info.

Installing one darklight node per docker host, you either get all the info about all the containers and hosts on the network, or can control any specific docker instance through an RPC like mechanism.

You can embed a darklight node into your application and use it to get that info.

See local.js for full understanding.

Build & run

Build darklight image

docker build --force-rm -t ignitial/darklight .

Run docker unit

tools/scontainer.sh <name>

Run natsio

docker run -d -p 4222:4222 -p 6222:6222 -p 8222:8222 --name nats nats

Utils

Remove current containers (force)

docker rm -f $(docker ps -a -q)
docker rmi $(docker images -f "dangling=true" -q)

Run darklight docker container

docker run -v /var/run/docker.sock:/var/run/docker.sock -e DATASYNC_NATS_SERVERS="[ \"nats://nats:4222\" ]" -e DEBUG="darknode,vikings:*" -e CONTAINER_HOST=192.168.1.105 --link nats:nats --name dl1 ignitial/darklight

Stop container

docker exec dl1 pkill -TERM node

Keywords

docker

FAQs

Package last updated on 01 Mar 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