Skip to content

[Bug]: Can't get container system commands to work #798

Closed

Description

@PhantomInTheWire

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

  1. clone apple/container
  2. make
  3. bin/container system start
  4. bin/container system stop(keeps running doesn't exit)
  5. ctrl+c then try bin/container system start/status/stop doesn't matter just can't get it to exit

i even tried to use global installation of container to stop it or check status or "start" it again but even that wouldn't exit and was stuck

Current behavior

i was playing around the codebase a little and when i did git pull this(container system commands stop exiting) happened.

Expected behavior

it was working properly before git pull everything ran in 3-7 secs

Environment

- OS: macos 26
- Xcode: 
- Container: current main branch commit 2f507fe9d911e9802d0423b4e89bbcf1619cc727

Relevant log output

i mean it just stays stuck but here

❯ container system stop
2025-10-22T05:38:23+0530 info com.apple.container.cli: [ContainerCommands] checking if APIServer is alive

Code of Conduct

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

Activity

  1. changed the title [-][Bug]: Can't get container system commands to work![/-] [+][Bug]: Can't get container system commands to work[/+] on Oct 22, 2025
  2. katiewasnothere commented on Oct 22, 2025

    @katiewasnothere
    Contributor

    Hi @PhantomInTheWire. I think this may be the same issue discussed in #713. If not, please let me know. Unfortunately the only solution we've found for this issue so far is a reboot of the machine. Can you try that and let me know if that resolves the issue?

  3. PhantomInTheWire commented on Oct 22, 2025

    @PhantomInTheWire
    Author

    Hey @katiewasnothere,
    yeah, when I first ran into this, my initial thought was that it might be a cache invalidation issue, so I did a clean build hoping that would fix it, no luck. Then I rolled back to an older commit that I knew worked, but that didn’t help either. Like you suggested, I also tried rebooting, though I do think it actually stopped the service. After the reboot, I recompiled on the latest commit and tested again, but the issue still persisted.

  4. PhantomInTheWire commented on Oct 22, 2025

    @PhantomInTheWire
    Author

    update: after reboot doing uninstall-container.sh -k, then clean build did fix this. should be similar to #713 then.

  5. PhantomInTheWire commented on Oct 22, 2025

    @PhantomInTheWire
    Author

    hey @katiewasnothere i think you guys should be able to reproduce this with running bin/container system start --debug first(make sure it wasn't running before this). after than the behavior mentioned above happens(container system commands hang). that being said i was able to fix that with launchctl bootout gui/$(id -u)/com.apple.container.apiserver without a reboot.

  6. katiewasnothere commented on Oct 22, 2025

    @katiewasnothere
    Contributor

    @PhantomInTheWire glad you got it working! Closing this issue

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