1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00

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

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()