-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL Integration cannot be disabled #6877
Comments
We just add all of the tools to Window's We can't turn that off because we're not actually doing anything there :) |
Rancher Desktop should add only windows executables to the windows path. So this way only the Docker integration should include linux executables to the WSL distros. |
While I agree with this conceptually, it is actually difficult to implement: how do we know for each possible distro how the user configures the Linux We can do this via heuristics, that will work most of the time (similar to how we do this on macOS and Linux), but it would be more brittle. So I'm wondering what problem this would solve. What is the issue of having the binaries included near the end of the Note that you can also disable appending the Windows paths by setting |
Just one more thing to mention. |
I do this on a daily basis for testing, and when I uninstall Rancher Desktop with the "Add or Remove programs" feature, the files are deleted, so there is no way it can still be available in WSL unless the uninstall failed: $ ls -l "$(which docker)"
-r-xr-xr-x 1 suse suse 38401408 May 16 23:38 '/mnt/c/Program Files/Rancher Desktop/resources/resources/linux/bin//docker' In the same shell, after uninstalling Rancher Desktop: $ ls -l "$(which docker)"
ls: cannot access '': No such file or directory Either way, I don't see how the
This is by design, so you can upgrade Rancher Desktop (which uninstalls the old version), and still keep your images/workloads/configs etc. If you want to remove everything, you need to perform a factory-reset before the uninstall. |
I'm going to close this issue as "by design" since I haven't seen any actual problems that are caused by having the binaries always on the PATH, and I've explained why doing it has benefits. |
Actual Behavior
I am using Windows 11 with WSL2 and 2 distros: Kali and Ubuntu.
Rancher Desktop was enabled for both distros (only Docker, no Kubernetes).
Now I want to disable one integration (e.g. Ubuntu).
The UI shows the success.
And I restarted my system to be crystal clear.
Unfortunatlly I can call "docker" within Ubuntu, and "whereis docker" shows "/mnt/c/Program Files/Rancher Desktop/resources/resources/linux/bin/docker".
So it is NOT disabled, although I chose so, and the UI mirrors that.
Steps to Reproduce
Install 2 WSL distros on a Windows 11 system.
Install Rancher Desktop.
Enable WSL Integration for both distros.
Then disable one WSL Integration.
Result
use "docker" or "whereis docker" to make sure that no docker is installed on the distro with the disabled Rancher Desktop WSL Integration.
Expected Behavior
using "docker" or "whereis docker" shows that there is no docker installed (thus not using the Rancher Desktop WSL Integration)
Additional Information
No response
Rancher Desktop Version
1.13.1
Rancher Desktop K8s Version
not using Kubernetes
Which container engine are you using?
containerd (nerdctl)
What operating system are you using?
Windows
Operating System / Build Version
Microsoft Windows 11 Pro, Version 10.0.22631 Build 22631
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
No response
The text was updated successfully, but these errors were encountered: