1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00

add a "node_connect" custom event when a node joins the cluster

Signed-off-by: mountkin <mountkin@gmail.com>
This commit is contained in:
mountkin
2015-01-19 19:27:41 +08:00
parent 34b845efab
commit fda3606be3

View File

@@ -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
}