Skip to content

[Bug]: Stop is failing with container using init #928

@tuxtof

Description

@tuxtof

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

container run -d --name test kindest/node:v1.34.0

container stop test
2025-12-03T07:18:13+0100 error com.apple.container: [ContainerCommands] failed to stop container test: internalError: "failed to stop container" (cause: "internalError: "failed to stop container test (cause: "internalError: "failed to delete process (cause: "internal error (13): deleteProcess: Error Domain=NSCocoaErrorDomain Code=512 "(null)"UserInfo={NSUnderlyingError=Error Domain=NSPOSIXErrorDomain Code=16 "Resource busy", NSFilePath=/sys/fs/cgroup/container/test, NSURL=file:///sys/fs/cgroup/container/test, NSUserStringVariant=["Remove"]}")"")"")
Error: internalError: "stop failed for one or more containers test"

Current behavior

container failed to stop with internal error message

Expected behavior

container will stop

Environment

- OS: macOS 26.1
- Container: 0.7.0

Relevant log output

2025-12-03T07:18:13+0100 error com.apple.container: [ContainerCommands] failed to stop container test: internalError: "failed to stop container" (cause: "internalError: "failed to stop container test (cause: "internalError: "failed to delete process (cause: "internal error (13): deleteProcess: Error Domain=NSCocoaErrorDomain Code=512 "(null)"UserInfo={NSUnderlyingError=Error Domain=NSPOSIXErrorDomain Code=16 "Resource busy", NSFilePath=/sys/fs/cgroup/container/test, NSURL=file:///sys/fs/cgroup/container/test, NSUserStringVariant=["Remove"]}")"")"")

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions