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

maybe I found a bug about pulling a image from mirrors #3734

Closed
ivmoe opened this issue Dec 5, 2024 · 1 comment
Closed

maybe I found a bug about pulling a image from mirrors #3734

ivmoe opened this issue Dec 5, 2024 · 1 comment
Labels
kind/unconfirmed-bug-claim Unconfirmed bug claim

Comments

@ivmoe
Copy link

ivmoe commented Dec 5, 2024

Description

here is my config : /etc/containerd/certs.d/

# cat /etc/containerd/certs.d/docker.io/hosts.toml

server = "https://docker.io"

[host."https://docker.wanpeng.top"]
  capabilities = ["pull", "resolve"]

[host."docker.unsee.tech"]
  capabilities = ["pull", "resolve"]

[host."https://docker.m.daocloud.io"]
  capabilities = ["pull", "resolve"]

However, it does not work when I pull images, like:

# nerdctl --debug=true pull docker.io/library/httpd:latest
DEBU[0000] verifying process skipped
DEBU[0000] The image will be unpacked for platform {"amd64" "linux" "" [] ""}, snapshotter "overlayfs".
DEBU[0000] fetching                                      image="docker.io/library/httpd:latest"
DEBU[0000] resolving                                     host=registry-1.docker.io
DEBU[0000] do request                                    host=registry-1.docker.io request.header.accept="application/vnd.docker.distrge.index.v1+json, */*" request.header.user-agent=containerd/2.0.0+unknown request.method=HEAD url="https://registry-1.docker.io/v2/lib
docker.io/library/httpd:latest: resolving      |--------------------------------------|
elapsed: 8.8 s                  total:   0.0 B (0.0 B/s)

I also tried using the flag --hosts-dir, but the result was the same.

And, I have configured my nerdctl config:

#  cat /etc/nerdctl/nerdctl.toml
hosts_dir = ["/etc/containerd/certs.d", "/etc/docker/certs.d"]

But, It is even not work.

My nerdctl version :

# nerdctl -v
nerdctl version 2.0.1

To verify whether it was a problem with my configuration or operation, I installed nerdctl 1.7.5 on another server and there were no issues. Please help me, thank you.

Steps to reproduce the issue

Describe the results you received and expected

None

What version of nerdctl are you using?

2.0.1

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

@ivmoe ivmoe added the kind/unconfirmed-bug-claim Unconfirmed bug claim label Dec 5, 2024
@ivmoe
Copy link
Author

ivmoe commented Dec 5, 2024

I found #3697 will be fixed in 2.0.2 #3720, so close this issue.

@ivmoe ivmoe closed this as completed Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/unconfirmed-bug-claim Unconfirmed bug claim
Projects
None yet
Development

No branches or pull requests

1 participant