mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
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:
parent
00e0aaa6e4
commit
20587519cd
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user