Open cyxinda opened 1 week ago
nerdctl is not a CRI application and does not consume CRI config:
nerdctl is not a CRI application and does not consume CRI config:
Lines 89 to 93 in 7a0b958
nerdctl ignores
[plugins."io.containerd.grpc.v1.cri"]
configExpected behavior, because nerdctl does not use CRI (Kubernetes Container Runtime Interface) API.
See the questions below for how to configure nerdctl.
But there is a diffrent behivor between the version 2.0.0-rc.2 and the version 2.0.0. And even if I use ctr ,it has the same behivor :
[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 plugins."io.containerd.grpc.v1.cri"
?
Description
I config the containerd like this:
And in the ~/.config/containerd/ is like this:
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
1. 2. 3.
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] nerdctl version 2.0.0 cyxinda@oldsix [~/.config/containerd/certs.d/docker.io] ➜ containerd --version [11:40:34] containerd github.com/containerd/containerd/v2 v2.0.0 207ad711eabd375a01713109a8a197d197ff6542
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information