Skip to content

kill process group when container hangs under NoProcessSandbox - #7087

Open
dany74q wants to merge 1 commit into
moby:masterfrom
dany74q:kill-process-group-no-process-sandbox
Open

kill process group when container hangs under NoProcessSandbox#7087
dany74q wants to merge 1 commit into
moby:masterfrom
dany74q:kill-process-group-no-process-sandbox

Conversation

@dany74q

@dany74q dany74q commented Aug 27, 2026

Copy link
Copy Markdown

Under --oci-worker-no-process-sandbox, runc kill only SIGKILLs the in-container init: the container shares the host pid namespace, so subprocesses survive it, and rootless runc cannot enumerate them without cgroups (opencontainers/runc#4398). Survivors keep the container's IO open, runc run never returns, and the solve never completes. See #4483 and #2855.

The fix passes a pidfile to runc run under NoProcessSandbox and, when the process has not ended within the existing grace after Kill, SIGKILLs its process group.

@dany74q dany74q changed the title executor: kill process group when container does not exit under NoProcessSandbox kill process group when container hangs under NoProcessSandbox Aug 27, 2026
Signed-off-by: Danny Hershko Shemesh <danny@wiz.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant