Using wsl2 in Production on Windows Server 2025 #14261
Unanswered
greengumby
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Hey! For auto-starting WSL2 on boot without user login, here are a couple of approaches:
For the Docker networking issue after reboot: WSL2's virtual network adapter sometimes resets. Try adding a startup script inside WSL that restarts Docker after the network is ready: This helps services start correctly on boot. Hope that gets your stack running reliably! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I currently have a docker stack that can happily run for weeks at a time as long as I leave a powershell window open. Unfortunately when the machine reboots unexpectedly the wsl2 environment does not startup.
I have tried using Task Scheduler to start it on boot however I cannot get this to function correctly.
action "C:\Windows\System32\wsl.exe" with return code 4294967295.Has anyone managed to get wsl2 to run without any user interaction on boot? Ideally the user would not even need to be logged in.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions