https://rancher.com/ logo
Title
i

icy-van-11930

02/07/2023, 4:21 PM
👋 Hello, team! I am certain that this problem is probably solved and I scanned the internet for a solution but could not find it. I installed Rancher Desktop on Windows so i can have it on this machine. But I want this also to be available in my WSL2 distro. I have found the setting in rancher desktop to enable it and I installed
nerdctl
on my Linux WSL2 distro but I could not make it to run. Does someone have a link, guide? thanks
w

wide-mechanic-33041

02/07/2023, 4:25 PM
well i believe when you do the WSL integration function it will add the stubs to the other distribution. possibly that is causing an issue. whats the error you are seeing in the other distro you are trying to connect? any networking workarounds like wsl-vpnkit at play?
i

icy-van-11930

02/07/2023, 4:27 PM
I did something really stupid.... I did install nerdctl in my linux distro. after removing it everything worked well.
👍 1
Problem solved
q

quick-keyboard-83126

02/07/2023, 6:53 PM
The
nerdctl
from Rancher Desktop is magical. It proxies its commands to the real
nerdctl
handler inside their VM, at least, in general that's what it does. Certainly for macOS/lima. So, using anyone else's
nerdctl
would result in a failure.
f

fast-garage-66093

02/07/2023, 7:28 PM
Yes, it is the same on Windows:
jan@DESKTOP-4992680:/mnt/z/rd/bats$ head -5 "$(which nerdctl)"
#!/bin/sh

if grep -q -i 'microsoft.*wsl' /proc/version; then
  exec /mnt/wsl/rancher-desktop/bin/nerdctl "$@"
else