moby--moby/libcontainerd
Cory Snider 1e0f2186a9 Fix containerd task deletion after failed start
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 mistakenly tries to clean up from a failed start by
deleting the created task, which will always fail with the
aforementioned error. Change it to pass the `WithProcessKill` delete
option so the cleanup has a chance to succeed.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 1bef9e3fbf)
Signed-off-by: Cory Snider <csnider@mirantis.com>
2022-11-02 16:59:22 -04:00
..
local gofmt GoDoc comments with go1.19 2022-07-13 22:42:29 +02:00
queue
remote Fix containerd task deletion after failed start 2022-11-02 16:59:22 -04:00
supervisor libcontainerd: switch generated containerd.toml to v2 (v1 is deprecated) 2022-07-28 16:45:26 +02:00
types libcontainerd: SignalProcess(): accept syscall.Signal 2022-05-05 00:53:49 +02:00
libcontainerd_linux.go
libcontainerd_windows.go Remove unused useShimV2() 2020-07-15 14:28:48 +02:00