mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Fix daemon panic on restoring containers
Signed-off-by: Lei Jitang <leijitang@huawei.com> (cherry picked from commit c75de8e33cc0db5236eef6146f2de06533b46aa8) Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user