Fork of https://github.com/ManoMarks/docker-swarm-visualizer with image name fix.
2.6K

*** note *** This only works with Docker Swarm Mode in Docker Engine 1.12.0 and later. It does not work with the separate Docker Swarm project
Thanks to all the contributors, and a special thanks to @DovAmir and @alexellis for their big contributions.
Demo container that displays Docker services running on a Docker Swarm in a diagram.
This works only with Docker Swarm Mode which was introduced in Docker 1.12. These instructions presume you are running on the master node and you already have a Swarm running.
Each node in the swarm will show all tasks running on it. When a service goes down it'll be removed. When a node goes down it won't, instead the circle at the top will turn red to indicate it went down. Tasks will be removed. Occasionally the Remote API will return incomplete data, for instance the node can be missing a name. The next time info for that node is pulled, the name will update.
To run:
$ docker run -it -d -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer
If port 8080 is already in use on your host, you can specify e.g. -p [YOURPORT]:8080 instead. Example:
$ docker run -it -d -p 5000:8080 -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer
To run in a docker swarm:
$ docker service create \
--name=viz \
--publish=8080:8080/tcp \
--constraint=node.role==manager \
--mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
manomarks/visualizer
@alexellisuk has pushed an image to the Docker Hub as alexellis2/visualizer-arm:latest it will run the code on an ARMv6 or ARMv7 device such as the Raspberry Pi.
If you would like to build the image from source run the following command:
$ docker build -f Dockerfile.arm -t visualizer-arm:latest .
TODO:
Content type
Image
Digest
Size
122.8 MB
Last updated
almost 10 years ago
docker pull clarenceb/visualizer