Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
change dockerhub endpoint
  • Loading branch information
DovAmir committed Aug 24, 2016
commit 23f4cdf3d496f626f717a76cdac40f0ebf8f4825
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Here is a sample image of nodes with data:



see installation instructions from https://github.com/ManoMarks/docker-swarm-visualizer below :
see installation instructions from https://github.com/ManoMarks/docker-swarm-visualizer below

(changed the dockerhub id from manomarks/visualizer to turaaa/swarmvisualizer:latest):

# Docker Swarm Visualizer

Expand All @@ -19,15 +21,15 @@ Demo container that displays Docker services on a Docker Swarm a diagram.
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 -e HOST=[YOURHOST] -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer`
To run: `docker run -it -d -p 8080:8080 -e HOST=[YOURHOST] -v /var/run/docker.sock:/var/run/docker.sock turaaa/swarmvisualizer:latest`

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.

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`
Example: `docker run -it -d -p 5000:5000 -e HOST=localhost -e PORT=5000 -v /var/run/docker.sock:/var/run/docker.sock turaaa/swarmvisualizer:latest`

In some cases, you need to run the docker with your master node hostname instead the IP

Example: `docker run -it -d -p 5000:5000 -e HOST=node-master -e PORT=5000 -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer`
Example: `docker run -it -d -p 5000:5000 -e HOST=node-master -e PORT=5000 -v /var/run/docker.sock:/var/run/docker.sock turaaa/swarmvisualizer:latest`

Here's a sample with one node:

Expand Down
2 changes: 1 addition & 1 deletion build.sh → build_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#RUN npm install --unsafe-perm=true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that you added a .gitignore that specified .sh files, did you mean to add these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build.sh creates a local swarm and runs the visualizer localy for testing.

push.sh is a script that pushes to dockerhub and should be removed from the repo (it points to my own dockerhub repo)


docker swarm init --advertise-addr 127.0.0.1:2377
docker service create rabbitmq:3.6.5
Expand Down