[Feature]: container run --name aliases
- 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
when we create a container with --name option, its replacing the id of container with name. instead of replacing id with name, it should put the name on a name tab
eg: container ls -a
ID IMAGE OS ARCH STATE ADDR NAME
a610d087-cfac-4586-81ab-927749ddbe8b docker.io/library/nginx:latest linux arm64 running 192.168.64.4 nginx
current behavior is mentioned below
### Current behavior
container --version
container CLI version 0.2.0 (build: release, commit: 3b5c253)
container run --name nginx -it -d nginx
nginx
container ls -a
ID IMAGE OS ARCH STATE ADDR
nginx docker.io/library/nginx:latest linux arm64 running 192.168.64.7
### Expected behavior
Excepted behavior eg:
`container ls -a
ID IMAGE OS ARCH STATE ADDR NAME
a610d087-cfac-4586-81ab-927749ddbe8b docker.io/library/nginx:latest linux arm64 running 192.168.64.4 nginx`
container ls -a should have both container id and container name.
### Environment
```markdown
- OS: macos 15.5
- Xcode:
- Container: container CLI version 0.2.0 (build: release, commit: 3b5c253)
```
### Relevant log output
```shell
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.