소스 검색

Merge pull request #25111 from coolljt0725/fix_25110

Fix daemon panic on restoring containers
Brian Goff 9 년 전
부모
커밋
abf0e9f071
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      libcontainerd/client_linux.go

+ 2 - 0
libcontainerd/client_linux.go

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