apple / apple/container

[Bug]: Failed to Stop Container with first 6 digits ID

Open
#1,691 1 comment 0 reactions 1 assignee Claimed by @jglogan View on GitHub
Dominant language
Swift
Stars
49.9k
Forks
1.8k
Avg merge
1d 20h
Merged PRs (30d)
22

Description

### I have done the following

- [x] I have searched the existing issues
- [ ] If possible, I've reproduced the issue using the 'main' branch of this project

### Steps to reproduce

xxxxingw@Mobieuss-MacBook-Pro Documents % container list
ID IMAGE OS ARCH STATE IP CPUS MEMORY STARTED
983d8fe8-09b1-47ab-b65b-a6ce9da824a5 docker.io/library/nginx:latest linux arm64 running 192.168.64.4/24 4 1024 MB 2026-06-11T01:57:11Z
xxxxingw@Mobieuss-MacBook-Pro Documents % container stop 983d8fe8
Error: internalError: "failed to stop container" (cause: "notFound: "container with ID 983d8fe8 not found"")
xxxxingw@Mobieuss-MacBook-Pro Documents % container stop 983d8fe8
Error: internalError: "failed to stop container" (cause: "notFound: "container with ID 983d8fe8 not found"")
xxxxingw@Mobieuss-MacBook-Pro Documents % container stop 983d8fe8-09b1-47ab-b65b-a6ce9da824a5
983d8fe8-09b1-47ab-b65b-a6ce9da824a5

### Problem description

I wonder if this is a bug or possibly a new feature. I cannot stop the container by using the first 6 digits of container IDs, as what I used to with docker command.

### Environment

```markdown
- OS: MacOS 26
- Xcode: 26.4
- Container: 1.0.0
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.