Engine should refresh the container on container rename event

Signed-off-by: Jia Mi <winters.mi@gmail.com>
This commit is contained in:
Jia Mi 2015-10-10 14:29:50 +08:00
parent ea65dd9925
commit 660299f749
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ func (e *Engine) handler(ev *dockerclient.Event, _ chan error, args ...interface
// These events refer to images so there's no need to update // These events refer to images so there's no need to update
// containers. // containers.
e.RefreshImages() e.RefreshImages()
case "die", "kill", "oom", "pause", "start", "stop", "unpause": case "die", "kill", "oom", "pause", "start", "stop", "unpause", "rename":
// If the container state changes, we have to do an inspect in // If the container state changes, we have to do an inspect in
// order to update container.Info and get the new NetworkSettings. // order to update container.Info and get the new NetworkSettings.
e.refreshContainer(ev.Id, true) e.refreshContainer(ev.Id, true)