Skip to content

Commit 9f9cd16

Browse files
author
Mano Marks
authored
Merge pull request #2 from ivansieder/master
Formatted README + added clarification
2 parents ef9a980 + 678d87b commit 9f9cd16

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Docker Swarm Visualizer
22

3-
Demo container that displays services on a diagram.
3+
Demo container that displays Docker services on a Docker Swarm a diagram.
44

55
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.
66
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.
77

8-
To run: docker run -it -d -p 8080:8080 -e HOST=[YOURHOST] -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer
8+
To run: `docker run -it -d -p 8080:8080 -e HOST=[YOURHOST] -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer`
99

10-
If port 8080 is already in use on your host, you can specify e.g. `-p 5000:5000 -e HOST=[YOURHOST] -e PORT=5000` instead.
10+
If port 8080 is already in use on your host, you can specify e.g. `-p [YOURPORT]:[YOURPORT] -e HOST=[YOURHOST] -e PORT=[YOURPORT]` instead.
11+
12+
Example: `docker run -it -d -p 5000:5000 -e HOST=localhost -e PORT=5000 -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer`
1113

1214
Here's a sample with one node:
1315

0 commit comments

Comments
 (0)