containerd / containerd/nerdctl
Unable to pull images from docker.io registry even after successful login (`dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.100:47063->10.0.2.3:53: i/o timeout`)
- Dominant language
- Go
- Stars
- 10.4k
- Forks
- 826
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 44
Description
I am trying to run nerdctl inside WSL 2 (Ubuntu 20.04). Everything is setup and running (following this guide: https://medium.com/geekculture/move-away-from-docker-now-and-utilize-wsl2-systemd-genie-containerd-with-nerdctl-d5f729dcf227). But I ran into problems when trying to pull any images.
```
nerdctl run -d httpd
docker.io/library/httpd:latest: resolving |--------------------------------------|
elapsed: 9.9 s total: 0.0 B (0.0 B/s)
INFO[0010] trying next host
error="failed to do request: Head \"https://registry-1.docker.io/v2/library/httpd/manifests/latest\":
dial tcp: lookup registry-1.docker.io on 10.0.2.3:53:
read udp 10.0.2.100:47063->10.0.2.3:53: i/o timeout" host=registry-1.docker.io
FATA[0010] failed to resolve reference "docker.io/library/httpd:latest": failed to do request:
Head "https://registry-1.docker.io/v2/library/httpd/manifests/latest":
dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read
udp 10.0.2.100:47063->10.0.2.3:53: i/o timeout
```
I have performed successful login using ```nerdctl login --username --password docker.io```
How can I fix this?
----------------------------------------
nerdctl:
> nerdctl version
> Client:
> Version: v0.15.0
> Git commit: b72b5ca14550b2e23a42787664b6182524c5053f
>
> Server:
> containerd:
> Version: v1.5.8
> GitCommit: 1e5ef943eb76627a6d3b6de8cd1ef6537f393a71
Containerd:
> containerd --version
> containerd github.com/containerd/containerd v1.5.8 1e5ef943eb76627a6d3b6de8cd1ef6537f393a71
OS:
>Edition Windows 11 Pro
>Version 21H2
>OS build 22000.376
>Experience Windows Feature Experience Pack 1000.22000.376.0
WSL 2 Kernel (Ubuntu 20.04)
>uname -r
>5.10.60.1-microsoft-standard-WSL2
**PS:**
I tried the following:
>nerdctl --debug-full login
>DEBU[0000] attempting v2 login to registry endpoint https://registry-1.docker.io/v2/
>Login Succeeded
and just after that it still fails with same error.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.