From bd6b37b57338484fb4ba50c9c7b6794e2536aa5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Sat, 15 Apr 2017 17:21:38 -0500 Subject: [PATCH] Add @manomarks' Swarm viz tool --- docs/index.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/docs/index.html b/docs/index.html index d024917e..c120bd32 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2249,6 +2249,52 @@ There are many ways to deal with inbound traffic on a Swarm cluster. --- +## Visualize container placement + +- Let's leverage the Docker API! + +- [Mano Marks](https://twitter.com/manomarks) wrote a simple-yet-beautiful-and-powerful + Swarm visualization tool + +.exercise[ + +- Clone this fork, because it has a Compose file: + ```bash + git clone git://github.com/jpetazzo/docker-swarm-visualizer + ``` + +- Build and run the Swarm visualizer: + ```bash + cd docker-swarm-visualizer + docker-compose up -d + ``` + +] + +--- + +## Connect to the visualization webapp + +- It runs a web server on port 8080 + +.exercise[ + +- Point your browser to port 8080 of any node of the Swarm + + (If you use Play-With-Docker, click on the (8080) badge) + +] + +- The webapp updates the display automatically (you don't need to reload the page) + +- It only shows Swarm services (not standalone containers) + +- It shows when nodes go down + +- It has some glitches (it's not Carrier-Grade Enterprise-Compliant ISO-9001 software) + +--- + ## Terminate our services - Before moving on, we will remove those services