Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support user-defined container registry config in image-rs #896

Open
Xynnn007 opened this issue Feb 5, 2025 · 3 comments
Open

Support user-defined container registry config in image-rs #896

Xynnn007 opened this issue Feb 5, 2025 · 3 comments

Comments

@Xynnn007
Copy link
Member

Xynnn007 commented Feb 5, 2025

https://github.com/containers/image/blob/main/docs/containers-registries.conf.5.md provides a standard of container registry configuration. It allows users to control including but not limited to the following settings

  • Registry remapping
  • Registry level blocking
  • Registry level insecure HTTP support

This feature could help to deal with the following user cases

@fffmonkeyking-new
Copy link

I want to run a confidential container with runtimeClass kata-qemu-tdx based on CoCo-v0.11.0.

If my docker image is located in a local private http registry:
http://myhub.local/test/nginx:1.21

I modified the containerd configuration /etc/containerd/config.toml:
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."myhub.local"]
endpoint = ["http://myhub.local"]

and then deploy my confidential container.
From the pod log, we can see that containerd can pull the image data; but the kata-agent in cvm failed to pull the image? :
kubelet Successfully pulled image "myhub.local/test/nginx:1.21" in 190ms (190ms including waiting). Image size: xxx bytes.
kubelet Successfully pulled image "myhub.local/test/nginx:1.21" in 90ms (90ms including waiting). Image size: xxx bytes.
kubelet Successfully pulled image "myhub.local/test/nginx:1.21" in 74ms (74ms including waiting). Image size: xxx bytes.
kubelet Successfully pulled image "myhub.local/test/nginx:1.21" in 73ms (73ms including waiting). Image size: xxx bytes.
kubelet Error: failed to create containerd task: failed to create shim task: failed to pull manifest error sending request for url (https://myhub.local/test/nginx:1.21)

How should I configure kata-agent to let it know that myhub.local/test/nginx:1.21 is a local private http registry?

@Xynnn007
Copy link
Member Author

@fffmonkeyking-new Now it does not support. This issue will cover this.

@fffmonkeyking-new
Copy link

@fffmonkeyking-new Now it does not support. This issue will cover this.

Thanks for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants