Docker restart would change container state. Should do a container inspect to update status.

Signed-off-by: Dong Chen <dongluo.chen@docker.com>
This commit is contained in:
Dong Chen 2016-03-16 16:27:35 -07:00
parent 968aae4f9c
commit c35d95fac4
1 changed files with 1 additions and 1 deletions

View File

@ -1003,7 +1003,7 @@ func (e *Engine) handler(ev *dockerclient.Event, _ chan error, args ...interface
e.RefreshImages()
case "container":
switch ev.Action {
case "die", "kill", "oom", "pause", "start", "stop", "unpause", "rename":
case "die", "kill", "oom", "pause", "start", "restart", "stop", "unpause", "rename":
e.refreshContainer(ev.ID, true)
default:
e.refreshContainer(ev.ID, false)