mirror of https://github.com/docker/docs.git
add a "node_connect" custom event when a node joins the cluster
Signed-off-by: mountkin <mountkin@gmail.com>
This commit is contained in:
parent
34b845efab
commit
fda3606be3
|
@ -90,6 +90,7 @@ func (n *Node) connectClient(client dockerclient.Client) error {
|
|||
|
||||
// Start monitoring events from the Node.
|
||||
n.client.StartMonitorEvents(n.handler)
|
||||
n.emitCustomEvent("node_connect")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue