I’m trying to detect changes in services inside a swarm: I'm listening for notifications with docker events
on a manager node and then I'm going to stop some running container on a worker node.
Sometimes I receive a node update event, sometimes not. I thought it might be related to moving and restarting the container on another node, but that does'nt always trigger an event.
I wasn’t able to find valid rules. So I wonder when exactly such event will be emitted? Or why it might not?
Edit: Furthermore, shouldn't there be a "service update" event as well, when a new container is started? Which swarm events should occur?