1bef9e3fbf
Deleting a containerd task whose status is Created fails with a "precondition failed" error. This is because (aside from Windows) a process is spawned when the task is created, and deleting the task while the process is running would leak the process if it was allowed. libcontainerd and the containerd plugin executor mistakenly try to clean up from a failed start by deleting the created task, which will always fail with the aforementined error. Change them to pass the `WithProcessKill` delete option so the cleanup has a chance to succeed. Signed-off-by: Cory Snider <csnider@mirantis.com> |
||
---|---|---|
.. | ||
local | ||
queue | ||
remote | ||
supervisor | ||
types | ||
libcontainerd_linux.go | ||
libcontainerd_windows.go | ||
replace.go |