mirror of https://github.com/docker/docs.git
change rlock to lock
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
82261a7df4
commit
188b3fd00d
|
|
@ -721,10 +721,10 @@ func (e *Engine) Create(config *ContainerConfig, name string, pullImage bool, au
|
|||
e.RefreshVolumes()
|
||||
e.RefreshNetworks()
|
||||
|
||||
e.RLock()
|
||||
defer e.RUnlock()
|
||||
|
||||
e.Lock()
|
||||
container := e.containers[id]
|
||||
e.Unlock()
|
||||
|
||||
if container == nil {
|
||||
err = errors.New("Container created but refresh didn't report it back")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue