rancher-desktop icon indicating copy to clipboard operation
rancher-desktop copied to clipboard

Rancher Desktop not working

Open CD1010 opened this issue 2 years ago • 5 comments

Actual Behavior

Nerdctl does not work. Docker is not active. Also tried with docker completely removed. Tried removing wsl also and reinstalled rancher desktop.

Steps to Reproduce

install docker desktop; Run alpine command Get errros

Result

C:\Windows\system32>nerdctl run -it --rm alpine docker.io/library/alpine:latest: resolving |--------------------------------------| elapsed: 29.9s total: 0.0 B (0.0 B/s) INFO[0039] trying next host error="failed to do request: Head "https://registry-1.docker.io/v2/library/alpine/manifests/latest": dial tcp 44.207.51.64:443: i/o timeout" host=registry-1.docker.io ERRO[0039] active check failed error="context canceled" FATA[0039] failed to resolve reference "docker.io/library/alpine:latest": failed to do request: Head "https://registry-1.docker.io/v2/library/alpine/manifests/latest": dial tcp 44.207.51.64:443: i/o timeout

Expected Behavior

it would work.

Additional Information

No response

Rancher Desktop Version

Latest as of today

Rancher Desktop K8s Version

Default

Which container engine are you using?

containerd (nerdctl)

What operating system are you using?

Windows

Operating System / Build Version

windows 10 pro

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

No response

Windows User Only

No response

CD1010 avatar Aug 19 '22 22:08 CD1010

Thanks for the bug report! Can you tell me more about your environment? Specifically, are you using a VPN or proxy of any kind? Or do you have any kind of modifications to your DNS configuration? RD runs nerdctl/docker inside a WSL VM, so there can be issues with networking if you are using a VPN or proxy.

adamkpickering avatar Aug 22 '22 20:08 adamkpickering

For me, the same thing happed.

I'm using Windows 10 with WSL2 installed + Windows 10 SDK.

I'm using Ranche Desktop version 1.5.0

I'm using proxy and this proxys was cofigured in .docker\config.json

\docker\config.json content:

{
  "auths": { 
    "docker-remotes.artifactory.xxxxxx.xxxxxxxxx.xxxxxxxxxxxx.xxxxx.ihf": {} 
  }, 
  "credsStore": "wincred",
 
  "proxies": {
    "default": {
      "httpProxy": "http://proxyad.xxxxxxxxxxxx:8080",
      "httpsProxy": "http://proxyad.xxxxxxxxxxxx:8443",
      "noProxy": "*.cloud.ihf"
    }
  }
}

.docker\daemon.json content:

{ "registry-mirrors": [], "insecure-registries": [ "docker-remotes.xxxxxxxxxx.xxxxxxxxxxxx.aws.cloud.ihf" ], "debug": false, "experimental": false, "features": { "buildkit": true }, "builder": { "gc": { "enabled": true, "defaultKeepStorage": "20GB" } } }

When I ran both commands below, I get this messages:

C:\Program Files\Rancher Desktop\resources\resources\win32\bin λ nerdctl --debug-full login Enter Username: vjsserrd Enter Password: DEBU[0007] Ignoring hosts dir "/etc/containerd/certs.d" error="stat /etc/containerd/certs.d: no such file or directory" DEBU[0007] Ignoring hosts dir "/etc/docker/certs.d" error="stat /etc/docker/certs.d: no such file or directory" DEBU[0007] len(regHosts)=1 ERRO[0037] failed to call tryLoginWithRegHost error="failed to call rh.Client.Do: Get "https://index.docker.io/v2/": dial tcp 44.206.182.67:443: i/o timeout" i=0 FATA[0037] failed to call rh.Client.Do: Get "https://index.docker.io/v2/": dial tcp 44.206.182.67:443: i/o timeout

C:\Program Files\Rancher Desktop\resources\resources\win32\bin λ nerdctl run -it --rm alpine docker.io/library/alpine:latest: resolving |--------------------------------------| elapsed: 29.8s total: 0.0 B (0.0 B/s) docker.io/library/alpine:latest: resolving |--------------------------------------| elapsed: 30.0s total: 0.0 B (0.0 B/s) FATA[0031] failed to resolve reference "docker.io/library/alpine:latest": failed to do request: Head "https://registry-1.docker.io/v2/library/alpine/manifests/latest": dial tcp 54.242.59.189:443: i/o timeout

C:\Program Files\Rancher Desktop\resources\resources\win32\bin

pabloluizleon avatar Aug 24 '22 18:08 pabloluizleon

I later found that it does not play nice with the ,kube config files generated by docker desktop. Docker leaves them behind after uninstall. So i deleted those folders and it seems to work.

CD1010 avatar Aug 24 '22 18:08 CD1010

Thanks for the bug report! Can you tell me more about your environment? Specifically, are you using a VPN or proxy of any kind? Or do you have any kind of modifications to your DNS configuration? RD runs nerdctl/docker inside a WSL VM, so there can be issues with networking if you are using a VPN or proxy.

See below: I think it got tricked by left over docker configs.

CD1010 avatar Aug 24 '22 18:08 CD1010

Hi, I'm using a proxy. I configured in config.json at .docker\config.json

I was using Docker Desktop and after the last comment I deleted the Docker Desktop masses to eliminate any issues.

in my hosts file the only modification is:

Added by Docker Desktop

192.168.1.6 host.docker.internal 192.168.1.6 gateway.docker.internal

To allow the same kube context to work on the host and the container:

127.0.0.1 kubernetes.docker.internal

End of section

But I'm aredy comment this routes and restart windows. But doesn't work.

pabloluizleon avatar Aug 24 '22 18:08 pabloluizleon

@CD1010 that's great that you got it working. I'm going to leave this issue open because .kubeconfig files left behind by Docker Desktop is something we should account for.

@pabloluizleon sounds like you have a different problem than @CD1010. Can you please search the issues for any similar ones (there are a number of issues with using proxies), and if you don't find any that describe your issue, create one? Thanks!

adamkpickering avatar Aug 26 '22 16:08 adamkpickering