Today we will try portainer.io to monitorize dowker containers created with docker swarm on multi piZERO workers with a RPI3 leader
to install docker on rpi :
curl -sSL https://get.docker.com | sh
then
sudo usermod -aG docker pi
To init the leader
docker swarm init
This will give you the command for the workers
docker swarm join \
--token SWMTKN-1-5awy2ej1d55mvgpq1obunnh6u2r8b0jjujel619es-7caoz16dxre2bkplp3sh \
xxx.xxx.xxx.xxx:2377
On the leader you can control your node :
docker node ls
————————–
PORTAINER.IO
————————–
To install to manage your swarm cluster you need to install it on the leader
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
Then enjoy by connecting to :
http://IP_LEADER:9000