mirror of https://github.com/docker/docs.git
engine: Force full refresh when container changes state.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
4cf0a32e4d
commit
8a00a5ff10
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue