Skip to content

[Bug]: unable to delete container #1058

@ptone

Description

@ptone

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 rm -f

Current behavior

container rm -f better-error
2026-01-15T19:30:03-0800 error com.apple.container: [ContainerCommands] failed to delete container better-error: internalError: "failed to delete container" (cause: "unknown: "Error Domain=NSCocoaErrorDomain Code=260 "The file “config.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/ptone/Library/Application Support/com.apple.container/containers/better-error/config.json, NSURL=file:///Users/ptone/Library/Application%20Support/com.apple.container/containers/better-error/config.json, NSUnderlyingError=0x6000005c8390 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}"")
Error: internalError: "delete failed for one or more containers: ["better-error"]"

Expected behavior

I expected to delete the container

Environment

- OS: 

  System Version:	macOS 15.7.3 (24G419)
  Kernel Version:	Darwin 24.6.0

- Xcode: 
- Container:

Relevant log output

N/A

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions