JavaScript Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
.dockerignore
.gitignore
.travis.yml
Dockerfile.amd64
Dockerfile.arm
Dockerfile.arm64
LICENSE
README.md
app.js
package.json
travis-build.sh
travis-deploy.sh
travis-test.sh

README.md

Docker Swarm Monitor

Build Status This image on DockerHub

The Docker Swarm Monitor shows running containers (eg. replicas of a swarm service) with the Blinkt! LED strip.

docker run -v /sys:/sys -v /var/run/docker.sock:/var/run/docker.sock monitor

Swarm Mode Demo

docker service create --name monitor \
--mode global --restart-condition any --mount type=bind,src=/sys,dst=/sys --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
stefanscherer/monitor:1.1.0

Create a service

docker service create --name whoami stefanscherer/whoami:1.1.0

Scale service up and down

docker service scale whoami=4
docker service scale whoami=16
docker service scale whoami=32

scale up

Run a rolling update

docker service update --image stefanscherer/whoami:1.2.0 \
  --update-parallelism 4  --update-delay 2s whoami

scale up

Scale down

docker service scale whoami=1

scale up