# # Visualizer Very visually shows the container load on each Docker host in the Swarm cluster,
# # Shipyard and Visualizer will take 8080, 5000 ports
# # should be planned, avoid the use of these two ports, I in the code should be 8088 ports
# # The following code has been tested properly
# # The Access address in this example: http://IP:8088
# # Run the following service creation command on the management node
Docker service create \
--name=viz \
--PUBLISH=8088:8080/TCP \
--constraint=node.role==manager \
--mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
Manomarks/visualizer
# # or run the following containers separately on the manager node:
Docker run-it-d-P 8088:8080-v/var/run/docker.sock:/var/run/docker.sock Manomarks/visualizer
Precautions:
1, to avoid port conflicts, the default is 8080, in this case I changed to 8088 ports.
2, used in the Docker 1.12.0 version of the cluster, without the cluster can not view the cluster information.
3, to install on the management node.
Reference URL: https://github.com/ManoMarks/docker-swarm-visualizer?hmsr=toutiao.io&utm_medium=toutiao.io&utm_ Source=toutiao.io
Reference URL: http://www.tuicool.com/articles/7fy6Nrm