mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix daemon panic on restoring containers
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
5d65ba4ca7
commit
c75de8e33c
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…
Add table
Reference in a new issue