Fix daemon panic on restoring containers
Signed-off-by: Lei Jitang <leijitang@huawei.com>
(cherry picked from commit c75de8e33c
)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
cda10d4d7f
commit
c46db363d6
1 changed files with 2 additions and 0 deletions
|
@ -563,6 +563,8 @@ func (clnt *client) Restore(containerID string, options ...CreateOption) error {
|
|||
clnt.remote.Lock()
|
||||
return nil
|
||||
}
|
||||
// relock because of the defer
|
||||
clnt.remote.Lock()
|
||||
|
||||
clnt.deleteContainer(containerID)
|
||||
|
||||
|
|
Loading…
Reference in a new issue