From 660299f7496efe1ace213c6e353b5412b514003c Mon Sep 17 00:00:00 2001 From: Jia Mi Date: Sat, 10 Oct 2015 14:29:50 +0800 Subject: [PATCH] Engine should refresh the container on container rename event Signed-off-by: Jia Mi --- cluster/engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/engine.go b/cluster/engine.go index 2b43e927c8..7e2262558c 100644 --- a/cluster/engine.go +++ b/cluster/engine.go @@ -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 // containers. 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 // order to update container.Info and get the new NetworkSettings. e.refreshContainer(ev.Id, true)