mirror of https://github.com/docker/docs.git
Engine should refresh the container on container rename event
Signed-off-by: Jia Mi <winters.mi@gmail.com>
This commit is contained in:
parent
ea65dd9925
commit
660299f749
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue