1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/plugin
Cory Snider 1bef9e3fbf 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 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>
2022-11-02 13:48:13 -04:00
..
executor/containerd Fix containerd task deletion after failed start 2022-11-02 13:48:13 -04:00
v2 plugin: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00
backend_linux.go plugin: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00
backend_linux_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
backend_unsupported.go plugin: use types/registry.AuthConfig 2022-07-29 23:05:19 +02:00
defs.go goimports: fix imports 2019-09-18 12:56:54 +02:00
errors.go filters: lowercase error 2022-03-18 09:44:53 +01:00
events.go
fetch_linux.go plugin: use types/registry.AuthConfig 2022-07-29 23:05:19 +02:00
manager.go migrate pkg/pubsub to github.com/moby/pubsub 2022-09-30 18:40:19 +02:00
manager_linux.go plugin: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00
manager_linux_test.go plugin: Executor.Signal() accept syscall.Signal 2022-05-05 00:53:55 +02:00
manager_test.go
manager_windows.go Do not call mount.RecursiveUnmount() on Windows 2020-10-29 23:00:16 +01:00
progress.go Use containerd dist libs for plugin pull/pull 2020-04-02 15:03:06 -07:00
registry.go plugin: use types/registry.AuthConfig 2022-07-29 23:05:19 +02:00
store.go gofmt GoDoc comments with go1.19 2022-07-08 19:56:23 +02:00
store_test.go goimports: fix imports 2019-09-18 12:56:54 +02:00