shim-v2: fix shim leak when hypervisor exit unexpectly

Fixes: #1929

in containerd-kata-v2, container can only be deleted in Delete
interface, or other shim operates(like kill/delete) all fails
since can not get container info.

Signed-off-by: Ace-Tang <aceapril@126.com>
This commit is contained in:
Ace-Tang 2019-08-05 22:21:52 +08:00
parent 00e0aaa6e4
commit 20587519cd

View File

@ -117,7 +117,6 @@ func watchSandbox(s *service) {
} }
} }
} }
s.containers = make(map[string]*container)
// Existing container/exec will be cleaned up by its waiters. // Existing container/exec will be cleaned up by its waiters.
// No need to send async events here. // No need to send async events here.