When running a Docker swarm there are some container/services that are realy handy to have. You want a graphical representation of your Docker swarm? There is a service for that. You want a UI for managing your Docker swarm? There is a service for that. You need to distribute your own build images to your Docker swarm? Yes there is also a service for that.

Portainer

Portainer is a Docker host and Docker swarm management UI, with this service you can manage your Docker swarm, create new Docker stacks and Docker services. You can see logging of the Docker services, and even login to de console of the container.

# Deploying portainer
# This must be executed on the Docker swam manager
ssh -l pirate manager01.cluster.haraldvdl.nl
docker service create --name portainer --publish 9000:9000 \
  --constraint 'node.role == manager' \
  --mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock \
  portainer/portainer -H unix:///var/run/docker.sock

Visualizer

Visualizer is a service which shows you the current running services on your Docker swarm.

# Deploys visualizer
# This must be executed on the Docker swam manager
docker service create --name=visualizer \
  --publish=8080:8080/tcp \
  --constraint=node.role==manager \
  --mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
  alexellis2/visualizer-arm