Skip to content

[Bug]: Cannot Stop or Uninstall Container #861

Open

Description

@jamesastound

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

Cannot stop container service or uninstall it.

─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) bash uninstall-container.sh -d
container is still running. Please ensure the service is stopped by running container system stop
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) sudo bash uninstall-container.sh -d
container is still running. Please ensure the service is stopped by running container system stop
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) container system stop
2025-11-07T20:54:25-0600 info com.apple.container.cli: stopTimeoutSeconds=5 [container] stopping containers
buildkit
2025-11-07T20:54:25-0600 info com.apple.container.cli: [container] waiting for containers to exit
2025-11-07T20:54:25-0600 info com.apple.container.cli: label=user/501/com.apple.container.apiserver [container] stopping service
2025-11-07T20:54:25-0600 info com.apple.container.cli: label=user/501/com.apple.container.container-network-vmnet.default [container] stopping service
2025-11-07T20:54:25-0600 info com.apple.container.cli: label=user/501/com.apple.container.container-core-images [container] stopping service
2025-11-07T20:54:25-0600 info com.apple.container.cli: label=user/501/com.apple.container.apiserver [container] stopping service
2025-11-07T20:54:25-0600 info com.apple.container.cli: label=user/501/com.apple.container.container-runtime-linux.buildkit [container] stopping service
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) sudo bash uninstall-container.sh -d
container is still running. Please ensure the service is stopped by running container system stop
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) sudo container system stop
2025-11-07T20:54:34-0600 info com.apple.container.cli: stopTimeoutSeconds=5 [container] stopping containers
buildkit
2025-11-07T20:54:34-0600 info com.apple.container.cli: [container] waiting for containers to exit
2025-11-07T20:54:34-0600 info com.apple.container.cli: label=user/0/com.apple.container.apiserver [container] stopping service
2025-11-07T20:54:34-0600 info com.apple.container.cli: label=user/0/com.apple.container.container-network-vmnet.default [container] stopping service
2025-11-07T20:54:34-0600 info com.apple.container.cli: label=user/0/com.apple.container.container-core-images [container] stopping service
2025-11-07T20:54:34-0600 info com.apple.container.cli: label=user/0/com.apple.container.apiserver [container] stopping service
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) sudo bash uninstall-container.sh -d
container is still running. Please ensure the service is stopped by running container system stop
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) ps aux | grep comtainer
james 76903 0.0 0.0 435300416 1344 s000 S+ 8:54PM 0:00.01 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox comtainer
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) sudo container system stop
2025-11-07T20:54:48-0600 info com.apple.container.cli: stopTimeoutSeconds=5 [container] stopping containers
buildkit
2025-11-07T20:54:48-0600 info com.apple.container.cli: [container] waiting for containers to exit
2025-11-07T20:54:48-0600 info com.apple.container.cli: label=user/0/com.apple.container.apiserver [container] stopping service
2025-11-07T20:54:48-0600 info com.apple.container.cli: label=user/0/com.apple.container.container-network-vmnet.default [container] stopping service
2025-11-07T20:54:48-0600 info com.apple.container.cli: label=user/0/com.apple.container.container-core-images [container] stopping service
2025-11-07T20:54:48-0600 info com.apple.container.cli: label=user/0/com.apple.container.apiserver [container] stopping service
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) sudo bash uninstall-container.sh -d
container is still running. Please ensure the service is stopped by running container system stop
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) container ls -a
ID IMAGE OS ARCH STATE ADDR
buildkit ghcr.io/apple/container-builder-shim/builder:0.6.0 linux arm64 stopped
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:54]
└─[$] git:(main) container rm buildkit
buildkit
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:55]
└─[$] git:(main) sudo bash uninstall-container.sh -d
container is still running. Please ensure the service is stopped by running container system stop
┌─[james@BluePint] - [/tmp/container/scripts] - [Fri Nov 07, 20:55]
└─[$] git:(main) container ls -a
ID IMAGE OS ARCH STATE ADDR

Current behavior

Cannot stop or uninstall service to upgrade.
Tried above commands and all failed. Container still installed.
Tried killing all processes named 'container' in Activity monitor. uninstall script still failed.

Cannot remove or uninstall container.

Expected behavior

I expect uninstall-container.sh can uninstall the container service, but it cannot. It only provides suggestions that do not actually work.

Environment

- OS: macos 26.01
- Xcode: 
- Container: container CLI version 0.4.1 (build: release, commit: 4ac18b5)

Relevant log output

N/A

Code of Conduct

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

Activity

  1. added theissue type on Nov 8, 2025
  2. Rajveer100 commented on Nov 8, 2025

    @Rajveer100

    @jamesastound @dcantah
    Same thing is happening with me:

    uninstall-container.sh -d
    `container` is still running. Please ensure the service is stopped by running `container system stop`
    container --version
    container CLI version 0.6.0 (build: release, commit: a23bcf0)
  3. Rajveer100 commented on Nov 8, 2025

    @Rajveer100
    container ls -a 
    ID                                    IMAGE                                    OS     ARCH   STATE    ADDR          CPUS  MEMORY
    be9d02f5-19b5-4c6a-be49-79fc558b1122  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped                4     1024 MB
    a4099bc7-8b3e-43dd-84d0-3be2d511fc7f  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped                4     1024 MB
    bd65bd39-003f-4735-bedf-e44d947e95c5  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped                4     1024 MB
    c0e01040-f6f1-41d5-a984-83754504a26c  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped                4     1024 MB
    5375f4a6-f91b-42c4-96ae-4e9108ffeb14  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped                4     1024 MB
    9c95f5ae-6110-487c-87e4-e396dbd0f542  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped                4     1024 MB
    bb92b946-8ba5-49dc-acc4-595a24b6af98  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped                4     1024 MB
    86d109d9-f62a-4ba2-902c-78f3596dcf0f  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped                4     1024 MB
    e108b237-aff2-4063-98b3-d762d315773a  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped                4     1024 MB
    23797e04-9f4b-4293-9bf0-4fa902a9dd09  docker.io/kalilinux/kali-rolling:latest  linux  arm64  running  192.168.64.6  4     1024 MB

    A specific one is not closing so its hung when trying container stop -all or container stop <id>

    This happens even after quitting in activity monitor:

    container ls -a          
    ID                                    IMAGE                                    OS     ARCH   STATE    ADDR  CPUS  MEMORY
    be9d02f5-19b5-4c6a-be49-79fc558b1122  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped        4     1024 MB
    86d109d9-f62a-4ba2-902c-78f3596dcf0f  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped        4     1024 MB
    a4099bc7-8b3e-43dd-84d0-3be2d511fc7f  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped        4     1024 MB
    c0e01040-f6f1-41d5-a984-83754504a26c  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped        4     1024 MB
    9c95f5ae-6110-487c-87e4-e396dbd0f542  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped        4     1024 MB
    bd65bd39-003f-4735-bedf-e44d947e95c5  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped        4     1024 MB
    bb92b946-8ba5-49dc-acc4-595a24b6af98  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped        4     1024 MB
    23797e04-9f4b-4293-9bf0-4fa902a9dd09  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped        4     1024 MB
    e108b237-aff2-4063-98b3-d762d315773a  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped        4     1024 MB
    5375f4a6-f91b-42c4-96ae-4e9108ffeb14  docker.io/kalilinux/kali-rolling:latest  linux  arm64  stopped        4     1024 MB

    the process keeps respawning in activity monitor, specifically these are the ones that don't die after repeating force kill:

    Image

    there were few others as well, but they don't respawn.

  4. Rajveer100 commented on Nov 8, 2025

    @Rajveer100

    Update: So, I managed to delete container finally, from my understanding there was some image that was stuck in the background due to unterminated process which I killed in activity monitor and the ones that were respawning were stopped with container stop --all && container system stop.

    PS: Apologies for 3 consecutive comments :)

  5. theAnuragMishra commented on Dec 10, 2025

    @theAnuragMishra

    Please fix this :) It's consuming around 600 mb constantly. I just want to stop the container system but container system stop keeps hanging and won't work. Nor does container stop --all work and keeps hanging.

  6. max-wittig commented on Dec 16, 2025

    @max-wittig

    Same issue here

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