refresh volumes after creating a container

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2015-11-02 16:31:57 -08:00
parent 0fa9b97f4e
commit 3f29299afd
1 changed files with 1 additions and 0 deletions

View File

@ -524,6 +524,7 @@ func (e *Engine) Create(config *ContainerConfig, name string, pullImage bool) (*
// Register the container immediately while waiting for a state refresh.
// Force a state refresh to pick up the newly created container.
e.refreshContainer(id, true)
e.RefreshVolumes()
e.RefreshNetworks()
e.RLock()