https://rancher.com/ logo
c

clean-laptop-5791

06/08/2022, 8:35 PM
Hi everyone! I'm getting started with Rancher Desktop on Win10 with WSL 2 I'm following this blog entry: https://www.suse.com/c/rancher_blog/using-rancher-desktop-for-local-kubernetes-development/ but I don't have the "Application Settings" tab in the app
r

rapid-eye-50641

06/08/2022, 8:37 PM
Hi, "Application Settings" is available only on macOS and Linux. On Windows, the supporting utilities(nerdctl, helm, kubectl etc) path is added to PATH environment variable by default.
👍 2
c

clean-laptop-5791

06/08/2022, 8:38 PM
ok. so next I was struggling with
$ nerdctl pull --address /var/run/docker/containerd/containerd.sock nginx:latest
I keep getting i/o timeout error:
Copy code
<http://docker.io/library/nginx:latest|docker.io/library/nginx: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>.
<http://docker.io/v2/library/nginx/manifests/latest\|docker.io/v2/library/nginx/manifests/latest\>": dial tcp: lookup <http://registry-1.docker.io|registry-1.docker.io> on 172.24.110.94:53: read u
dp 172.24.110.94:40189->172.24.110.94:53: i/o timeout" host=<http://registry-1.docker.io|registry-1.docker.io>
ERRO[0010] active check failed                           error="context canceled"
FATA[0010] failed to resolve reference "<http://docker.io/library/nginx:latest|docker.io/library/nginx:latest>": failed to do request: Head "<https://reg>
<http://istry-1.docker.io/v2/library/nginx/manifests/latest|istry-1.docker.io/v2/library/nginx/manifests/latest>": dial tcp: lookup <http://registry-1.docker.io|registry-1.docker.io> on 172.24.110.94:53:
 read udp 172.24.110.94:40189->172.24.110.94:53: i/o timeout
I'm a total noob. I've used WSL for a while but this stuff is baffling
should I jump back to the #general channel?
c

calm-sugar-3169

06/08/2022, 8:41 PM
I assume you are running this on the host machine?
nerdctl pull --address /var/run/docker/containerd/containerd.sock nginx:latest
c

clean-laptop-5791

06/08/2022, 8:41 PM
nah...noob. lemme try that
c

calm-sugar-3169

06/08/2022, 8:42 PM
can you try
nerdctl pull nginx:latest
without including the socket address.
c

clean-laptop-5791

06/08/2022, 8:43 PM
same in powershell
Copy code
PS C:\dev> nerdctl pull nginx:latest
FATA[0000] cannot access containerd socket "/run/k3s/containerd/containerd.sock" (hint: try running with `--address /var/run/docker/containerd/containerd.sock` to connect to Docker-managed containerd): no such file or directory
c

calm-sugar-3169

06/08/2022, 8:45 PM
which backend are you using?
you can choose to use between “Moby” and “containerd”
c

clean-laptop-5791

06/08/2022, 8:46 PM
not sure what you mean. Win10 WSL2 Rancher Desktop 1.4
for local dev
oh, didn't see that last statement @calm-sugar-3169 let me try thx
right now I'm using moby and CAN change to containerd lemme try switching?
c

calm-sugar-3169

06/08/2022, 8:48 PM
sure, try switching
I believe nrdctl can’t work with moby runtime
c

clean-laptop-5791

06/08/2022, 8:49 PM
:me embarrassed
😊 2
c

calm-sugar-3169

06/08/2022, 8:49 PM
Nothing to worry at all, we are just glad that you are giving Rancher Desktop a try 🙂
🙌 1
c

clean-laptop-5791

06/08/2022, 8:50 PM
switch to containerd did not change the result
c

calm-sugar-3169

06/08/2022, 8:51 PM
can you try to exit the RD and restart it?
c

clean-laptop-5791

06/08/2022, 8:51 PM
yes
c

calm-sugar-3169

06/08/2022, 8:53 PM
Just to make sure that we are not looking at a bug here, are you able to factory reset and when you get the initial prompt choose containerd runtime?
c

clean-laptop-5791

06/08/2022, 8:53 PM
restarted Powershell (as admin) and RD
Copy code
PS C:\dev> nerdctl pull nginx:latest                                                                                                                                                                             /usr/local/bin/docker-credential-rancher-desktop: source: line 5: can't open '/etc/rancher/desktop/credfwd': No such file or directory                                                                           WARN[0000] cannot get auth config for authConfigHostname="<http://index.docker.io|index.docker.io>" (refHostname="<http://docker.io|docker.io>")  error="error getting credentials - err: exit status 2, out: ``"                                            /usr/local/bin/docker-credential-rancher-desktop: source: line 5: can't open '/etc/rancher/desktop/credfwd': No such file or directory                                                                           WARN[0000] cannot get auth config for authConfigHostname="<http://docker.io|docker.io>" (refHostname="<http://docker.io|docker.io>")  error="error getting credentials - err: exit status 2, out: ``"                                                  <http://docker.io/library/nginx:latest|docker.io/library/nginx: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/nginx/manifests/latest>\": dial tcp: lookup <http://registry-1.docker.io|registry-1.docker.io> on 172.24.110.94:53: read udp 172.24.110.94:53930->172.24.110.94:53: i/o timeout" host=<http://registry-1.docker.io|registry-1.docker.io>                                                                                                                  FATA[0010] failed to resolve reference "<http://docker.io/library/nginx:latest|docker.io/library/nginx:latest>": failed to do request: Head "<https://registry-1.docker.io/v2/library/nginx/manifests/latest>": dial tcp: lookup <http://registry-1.docker.io|registry-1.docker.io> on 172.24.110.94:53: read udp 172.24.110.94:53930->172.24.110.94:53: i/o timeout
c

calm-sugar-3169

06/08/2022, 8:53 PM
you can access the factory reset under troubleshooting tab
c

clean-laptop-5791

06/08/2022, 8:53 PM
yes
c

calm-sugar-3169

06/08/2022, 8:54 PM
btw, the second error is todo with credentials, maybe wrong creds?
c

clean-laptop-5791

06/08/2022, 8:55 PM
shouldn't I be able to do a hello-world without creds?
assuming creds are for docker.io
👍 1
I'll make sure I have an account and then, should I be able to do
docker login'
just by installing RD? (factory reset and download almost done)
c

calm-sugar-3169

06/08/2022, 8:57 PM
ok, lets just try the factory reset. Because the creds shouldn’t be necessary I just pointed it out because I saw the error above
c

clean-laptop-5791

06/08/2022, 8:57 PM
k
it's starting wsl
...kubernetes
taking a lot longer this time. maybe that's a good sign... 'waiting for services...'
meh, seems hung up on something
hah! disconnected my vpn. it's done
same timeout
so, my vpn client was blocking the start of services, maybe but then, after factory reset and disabled vpn client, same problem
r

rapid-eye-50641

06/08/2022, 9:27 PM
May be it's because you are trying in a privileged power shell. It looks like there's a know issue with using nerdctl in a privileged powershell.. Can you please try in a non admin powershell please?
c

clean-laptop-5791

06/08/2022, 9:27 PM
oh!. yeah...
no dice
w

wide-mechanic-33041

06/09/2022, 12:44 PM
hey so long thread, but looked like the original issue was DNS (:53 fail). Likely you have some firewall issue, but I would give the experimentalHostResolver a go
1073 Views