1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/libcontainerd/remote
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
..
client.go Fix containerd task deletion after failed start 2022-11-02 16:59:22 -04:00
client_io_windows.go Windows: Experimental: Allow containerd for runtime 2019-03-12 18:41:55 -07:00
client_linux.go Configure shims from runtime config 2020-07-13 14:18:02 -07:00
client_windows.go libcontainerd: remove LCOW bits 2021-06-09 22:05:10 +02:00