Skip to content
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

Docker Desktop for Windows: Allow modifying path to wsl.exe #728

Open
PyroGenesis opened this issue Oct 16, 2024 · 0 comments
Open

Docker Desktop for Windows: Allow modifying path to wsl.exe #728

PyroGenesis opened this issue Oct 16, 2024 · 0 comments
Assignees
Labels
community_new New idea raised by a community contributor

Comments

@PyroGenesis
Copy link

PyroGenesis commented Oct 16, 2024

Tell us about your request
Docker Desktop for Windows uses the wsl.exe exeutable located at C:\Windows\System32. However, on testing I've found this executable to lack certain functionalities like being able to be launched from Task Scheduler. However, the wsl.exe executable located at C:\Program Files\WSL seems to be much more updated and fixes that issue.

If there was a way to configure the default WSL location for Docker, say using environment variables or a property in the Docker Engine configuration, that would be great!

Which service(s) is this request for?
Docker Desktop for Windows

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
I want to be able to launch Docker Desktop in a Windows Server environment without the administrator logging in. I have restartable containers set up which automatically start functioning as soon as Docker is up.
I tried to setup Docker to be started through the Task Scheduler, but that does not work. I noticed that even though the com.docker.backedn.exe and Docker Desktop.exe processes came up, the wsl.exe processes never start.

Are you currently working around the issue?
The one janky workaround I've found is to replace C:\Windows\System32\wsl.exe with C:\Program Files\WSL\wsl.exe which is bound to be unstable.

Additional context
Docker version: 4.30.0
WSL version: 2.2.4.0

This is also partially a bug report, as it would help fix issues like #515 and #13790.

@PyroGenesis PyroGenesis added the community_new New idea raised by a community contributor label Oct 16, 2024
@PyroGenesis PyroGenesis changed the title Docker Desktop for Windows: Allow path config for wsl.exe Docker Desktop for Windows: Allow modifying path to wsl.exe Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_new New idea raised by a community contributor
Projects
None yet
Development

No branches or pull requests

2 participants