dockersamples/docker-swarm-visualizer

sorry I can not understand what these colors represent for?

zhoulouzi opened this issue · 5 comments

what does the border in different colors means ? about the container resources situation ?

maybe a more detail README.md thanks.

Looking at the code, seems that it is a randomly generated color based on the service ID.

Perhaps the colour could relate to health of the container? Or containers from the same stack could have the same colour?

The random border colours help the eye differentiate containers from each other. Container health would hopefully be all green for all containers! The dot before the container name already shows green/red (ie. during startup).

Maybe better than random, the colour could be derived from a hash of the name or ID, so the colours are different but stay the same after visualizer restarts.

This is a sample app, not meant for production. If anyone wants to submit a PR we would review.