From 8a00a5ff103f51b32d6ee3c77f18476a80ecf16f Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 6 May 2015 22:53:55 -0700 Subject: [PATCH] engine: Force full refresh when container changes state. Signed-off-by: Andrea Luzzardi --- cluster/engine.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cluster/engine.go b/cluster/engine.go index 933dd8e3b5..7235f23ff7 100644 --- a/cluster/engine.go +++ b/cluster/engine.go @@ -515,9 +515,9 @@ 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 "start", "die": - // If the container is started or stopped, we have to do an inspect in - // order to get the new NetworkSettings. + case "die", "kill", "oom", "pause", "start", "stop", "unpause": + // 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) default: // Otherwise, do a "soft" refresh of the container.