container
container copied to clipboard
Fix image removal lookup
Type of Change
- [x] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation update
Motivation and Context
Image removal should accept the same identifiers users copy from container image list. Previously, deletion lookup could miss unique default-registry display names such as ubuntu for docker.io/library/ubuntu:22.04, and digest prefixes shown in list output.
This updates image matching to resolve unique displayed names and digest prefixes, avoid ambiguous matches, and preserve locally built image annotation preference.
Fixes #107.
Testing
-
[x] Tested locally
-
[x] Added/updated tests
-
[ ] Added/updated docs
-
swift test --filter ContainerAPIClientTests