container icon indicating copy to clipboard operation
container copied to clipboard

[Bug]: "queryError("query failure: unhandledError(status: -25308)")" the pulling from private registry

Open b-m-f opened this issue 5 months ago • 6 comments

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

container image pull --arch amd64  888111111111.test.ecr.eu-central-1.amazonaws.com/aws/crossplane-function/crossplane-xpkg/function:1.0.0

Problem description

results in

Error: error querying keychain for 888111111111.test.ecr.eu-central-1.amazonaws.com (cause: "queryError("query failure: unhandledError(status: -25308)")")

Issue https://github.com/apple/container/issues/704 has the same issue, but was closed without any more information.

Password is saved into keychain correctly. The error happens regardless of the access control settings for the password item

Any steps to debug further?

Environment

- OS: 26.5.1
- Xcode: 26.5
- Container: 1.0.0

Code of Conduct

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

b-m-f avatar Jun 15 '26 08:06 b-m-f

终于看到 Apple 官方的容器方案了。有个实现细节比较好奇:Containerization 用 Virtualization.framework 直接跑轻量级 VM,相比 Lima/Colima 走 QEMU,在 I/O 密集场景特别是 bind mount 时性能差异大吗?virtio-fs 的实现跟 Docker Desktop 比有没有做针对性优化?另外 lost+found 那个 Issue 估计是 ext4 默认行为,volume 初始化时是不是可以考虑用 mke2fs -m 0 或者干脆用 xfs 来规避?

junichi-2099 avatar Jun 15 '26 09:06 junichi-2099

Based on https://github.com/apple/container/issues/816#issuecomment-3503618765. If you open your keychain and search for your rergistry -> Access Control and add "container-core-images" to the list of "Always allow access by these application:" You should be able to pull/push images to the new registry

rewantsoni avatar Jun 16 '26 06:06 rewantsoni

@rewantsoni , thanks for the reply.

I have tried with

Image

and the same error happens.

Setting

Image

Does not help either.

b-m-f avatar Jun 17 '26 07:06 b-m-f

@b-m-f are you running container system start via a launch agent or some other non-GUI context (such as an ssh session)?

Alternatively, are you running your container image pull commands from a non-GUI context?

jglogan avatar Aug 04 '26 23:08 jglogan

@b-m-f The other question is, have you mixed usage of the apple/container release page distribution and the Homebrew install?

See #1310 for details.

jglogan avatar Aug 04 '26 23:08 jglogan

@jglogan homebrew is not installed. container is installed via the GH release.

container system start is run from the terminal. container image pull is run from the terminal.

b-m-f avatar Aug 05 '26 08:08 b-m-f