https://rancher.com/ logo
Title
l

little-elephant-4900

02/09/2023, 8:07 PM
Hi Team I was using rancher desktop on windows, today I have updated my wsl, and now when I try to execute the the docker commands I am getting:
'docker' is not recognized as an internal or external command,
operable program or batch file.
Previously I was running all the docker commands on windows powershell and now it is not working
w

wide-mechanic-33041

02/09/2023, 9:05 PM
in the diagnostics area of rancher desktop does it flag anything? likely something updated your PATH so the .rd/bin folder was removed
l

little-elephant-4900

02/09/2023, 9:06 PM
I re-installed and now it is working, thank you
đź‘Ť 1
f

fast-garage-66093

02/10/2023, 1:36 AM
@wide-mechanic-33041 There is no
~/.rd/bin
on Windows; the installer puts the resources directory inside the app at the end of the PATH automatically. I have no idea how that could have been dropped, but there is no in-app way to restore it currently (and there are no PATH related diagnostics on Windows either). I think it should work more like the other platforms in the future, but this is how it currently works.
đź‘Ť 1
w

wide-mechanic-33041

02/10/2023, 12:42 PM
Yeah just a force of habit jumping back and forth between platforms. The %LOCALAPPDATA%\Programs\Rancher… could be added back into the PATH w/o too much heartache as a User variable so its a pretty easy fix for folks. Plenty of apps adjust PATH on install so I run into folks with a missing or misconfigured (looking at you JDKs breaking kerberos) PATHs pretty frequently.