support daemon events for swarm

Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
allencloud 2016-06-05 17:52:06 +08:00
parent b29baba3bb
commit d382fbd883
1 changed files with 7 additions and 0 deletions

View File

@ -1152,6 +1152,13 @@ func (e *Engine) handler(msg events.Message) error {
default:
e.refreshContainer(msg.ID, false)
}
case "daemon":
// docker 1.12 started to support daemon events
// https://github.com/docker/docker/pull/22590
switch msg.Action {
case "reload":
e.updateSpecs()
}
case "":
// docker < 1.10
switch msg.Status {