mirror of
https://github.com/docker/docs.git
synced 2026-11-11 04:02:07 +03:00
Merge pull request #1277 from mijia/rename_event
Engine should refresh the container on container rename event
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user