-
Notifications
You must be signed in to change notification settings - Fork 628
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
The config_path of [plugins."io.containerd.grpc.v1.cri".registry] don't work. #3671
Comments
nerdctl is not a CRI application and does not consume CRI config: Lines 89 to 93 in 7a0b958
|
But there is a diffrent behivor between the version 2.0.0-rc.2 and the version 2.0.0. [root@sc-node-app-3 docker.io]# ctr -n k8s.io i pull docker.io/library/ubuntu:latest
WARN[0000] DEPRECATION: The `tracing` property of `[plugins."io.containerd.internal.v1".tracing]` is deprecated since containerd v1.6 and will be removed in containerd v2.0.Use OTEL environment variables instead: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/
ctr: rpc error: code = DeadlineExceeded desc = failed to resolve image: failed to do request: Head "https://registry-1.docker.io/v2/library/ubuntu/manifests/latest": dial tcp 108.160.165.173:443: i/o timeout
[root@sc-node-app-3 docker.io]# ctr --version
ctr github.com/containerd/containerd/v2 v2.0.0 Will the ctr client also ignore this configuration |
@cyxinda you can try this
Yes ctr also doesn't use containerd cri interface. |
Description
I config the containerd like this:
And in the ~/.config/containerd/ is like this:
cyxinda@oldsix [~/.config/containerd] ➜ ls [11:24:25] certs.d config.toml cyxinda@oldsix [~/.config/containerd] ➜ tree [11:24:25] . ├── certs.d │ └── docker.io │ └── hosts.toml └── config.toml
The content of certs.d/docker.io/hosts.toml is:
I try to pull image from docker hub using the nerdctl in the version of 2.0.0-rc.1 and 2.0.0-rc.2,it works with the proxy server of
https://jockerhub.com
.And like this:
When I do the same thing using the nerdctl in the version of 2.0.0-rc.3 and 2.0.0,it will not use the proxy server any more.
I think this is a bug.
Steps to reproduce the issue
Describe the results you received and expected
I expect the nerdctl can use the proxy server refer to the config of hosts.toml .
What version of nerdctl are you using?
cyxinda@oldsix [
/.config/containerd/certs.d/docker.io] ➜ nerdctl --version [11:40:31]/.config/containerd/certs.d/docker.io] ➜ containerd --version [11:40:34]nerdctl version 2.0.0
cyxinda@oldsix [
containerd github.com/containerd/containerd/v2 v2.0.0 207ad711eabd375a01713109a8a197d197ff6542
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
The text was updated successfully, but these errors were encountered: