docker / roadmap

Welcome to the Public Roadmap for All Things Docker! We welcome your ideas.
https://github.com/orgs/docker/projects/51
Creative Commons Zero v1.0 Universal
1.74k stars 261 forks source link

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

Open PyroGenesis opened 1 month ago

PyroGenesis commented 1 month ago

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.