https://rancher.com/ logo
Title
n

nutritious-librarian-97701

10/23/2022, 5:22 PM
👋 Hello, team! I have just install "Rancher Desktop" and getting this error:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
I having using wsl2
Also getting this error when I reset the K8 setting:
I have already kubectl installed
where kubectl
/usr/local/bin/kubectl
/mnt/c/Users/xxxxxx/AppData/Local/Programs/Rancher Desktop/resources/resources/linux/bin/kubectl
w

wide-mechanic-33041

10/24/2022, 11:35 AM
are you using dockerd or containerd as your container engine? is nerdctl working when docker cli doesn’t?
n

nutritious-librarian-97701

10/24/2022, 12:13 PM
Actually I tried to install again and get this error message.
Last command run:
wsl.exe --import rancher-desktop C:\Users\wto713\AppData\Local\rancher-desktop\distro C:\Users\wto713\AppData\Local\Programs\Rancher Desktop\resources\resources\win32\distro-0.21.tar --version 2
2022-10-24T12:09:52.078Z: Registered distributions: 
2022-10-24T12:09:52.104Z: Capturing output: wsl.exe --list --quiet
2022-10-24T12:09:52.714Z: Capturing output: wsl.exe --list --verbose
2022-10-24T12:09:53.130Z: Registered distributions: 
2022-10-24T12:09:53.130Z: Capturing output: wsl.exe --list --quiet
2022-10-24T12:09:53.337Z: Capturing output: wsl.exe --list --verbose
2022-10-24T12:09:53.500Z: Registered distributions: 
2022-10-24T12:09:53.503Z: Running: wsl.exe --import rancher-desktop C:\Users\wto713\AppData\Local\rancher-desktop\distro C:\Users\wto713\AppData\Local\Programs\Rancher Desktop\resources\resources\win32\distro-0.21.tar --version 2
2022-10-24T12:10:39.415Z: WSL failed to execute wsl.exe --import rancher-desktop C:\Users\wto713\AppData\Local\rancher-desktop\distro C:\Users\wto713\AppData\Local\Programs\Rancher Desktop\resources\resources\win32\distro-0.21.tar --version 2: Error: wsl.exe exited with code 4294967295
I have wsl 1 already installed
w

wide-mechanic-33041

10/24/2022, 12:14 PM
looks like WSL is having some issues. I have seen problems where RD is responsible for installing Hyper-V and WSL. Do you have any other WSL2 distros running on your machine?
n

nutritious-librarian-97701

10/24/2022, 12:15 PM
No
w

wide-mechanic-33041

10/24/2022, 12:15 PM
also are you really on RD 1.3? or 1.6? error message lists 1.3 which is quite old
n

nutritious-librarian-97701

10/24/2022, 12:15 PM
wsl -l -v NAME STATE VERSION * Ubuntu Running 1
Version: 1.3.0
Let me try again with the latest version
w

wide-mechanic-33041

10/24/2022, 12:16 PM
so if you upgrade that v1 to v2 does it still work
n

nutritious-librarian-97701

10/24/2022, 8:40 PM
Now I installed the latest version of RD but still getting this error
docker pull hello-world
Using default tag: latest
error during connect: This error may indicate that the docker daemon is not running.: Post "<http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/create?fromImage=hello-world&tag=latest>": open //./pipe/docker_engine: The system cannot find the file specified.
w

wide-mechanic-33041

10/24/2022, 8:47 PM
are you configured to use dockerd or containerd in Rancher’s dialog?
and if dockerd did you do the docker content use rancher-desktop if you are not running admin
n

nutritious-librarian-97701

10/24/2022, 8:48 PM
containerd
w

wide-mechanic-33041

10/24/2022, 8:48 PM
well than you need to use nerdctl pull hello-world 😉
n

nutritious-librarian-97701

10/24/2022, 8:55 PM
ok but I think my installation still have some issues.
w

wide-mechanic-33041

10/24/2022, 8:56 PM
yeah definitely still has issues. My gut tells me that WSL2/Hyper-V is not working on your machine correctly
its either WSL2 is not installed correctly or it could be admin is needed to complete the import
i would try to convert your Ubnt20 to v2 to see if it starts and runs. if so than the alpine distro for RD shouldn’t have issues
n

nutritious-librarian-97701

10/24/2022, 8:58 PM
I am working in WSL2 installation to get this going.... I will also try alpine if ubuntu didn't work
Thanks for your help!
w

wide-mechanic-33041

10/24/2022, 8:59 PM
well RD is an alpine distro. if you cant do a set-version 2 for your existing ubuntu and it works than RD will have issues
n

nutritious-librarian-97701

10/24/2022, 11:22 PM
Finally !!
I have installed the new wsl2 ubuntu version but I have to first uninstall the RD.
Then I install the RD and it works as expected
I didn't want to disturb my current wsl1 Ubuntu setup due to networking