mirror of https://github.com/docker/docs.git
support daemon events for swarm
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
b29baba3bb
commit
d382fbd883
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue