Skip to content

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

Closed

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

Activity

  1. added theissue type on Dec 3, 2025
  2. Tazintosh commented on Dec 3, 2025

    @Tazintosh

    Can't stop nor kill any of my containers under 0.7.0
    Correction, any of my PHP ones:
    PHP7 docker.io/arm64v8/php:7.4-fpm linux arm64 running 192.168.64.12 4 1024 MB PHP docker.io/arm64v8/php:8.3-fpm linux arm64 running 192.168.64.11 4 1024 MB

    Command is like:
    container run --name PHP -d -v /Users/someUser/Documents/Container/PHP:/usr/local/etc/php -v /Users/someUser/Sites:/usr/share/nginx/html -e TZ=Europe/Paris arm64v8/php:8.3-fpm bash -c "apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev libicu-dev && docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install gd mysqli intl exif && php-fpm"

  3. dcantah commented on Dec 8, 2025

    @dcantah
    Contributor

    @Tazintosh When you say can't stop, does it hang or you mean you get this same error?

  4. dcantah commented on Dec 9, 2025

    @dcantah
    Contributor

    This should fix @tuxtof's issue at least apple/containerization#439

  5. Tazintosh commented on Dec 9, 2025

    @Tazintosh

    @Tazintosh When you say can't stop, does it hang or you mean you get this same error?

    It hang. No errror.
    In fact, I’ve noticed this issue in 0.6.0 too when PHP is crashing(?) for some reason.
    Even the container kill command won’t work and the only way is to kill using Activity Monitor for instance, which is not easy since all containers have the exact same process name.

  6. changed the title [-][Bug]: Stop is failing with contaienr using init[/-] [+][Bug]: Stop is failing with container using init[/+] on Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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