You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wsl doesn't keep running in background after closing window #9401
Reacted by hiwilson, franco-atman, Pedro Ryan, weiguoz, Marek Pluta, RicardoL, João Augusto Casagrande da Silva, jw-redpanda, Fehnand, Offblix and 4 more
Activity
hipengwen commentedon Dec 30, 2022
There is a docker daemon running.
ygqygq2 commentedon Jan 13, 2023
Facing the same issues. But we can try this.
https://askubuntu.com/questions/1435938/is-it-possible-to-run-a-wsl-app-in-the-background
jw-redpanda commentedon May 4, 2023
hipengwen Can you try the below?
I have several WSL2 environments, using a startup script will autorun the WSL2 Ubuntu instance and it will keep running in the background.
Put a cmd script file, e.g.
startwsl.cmdin the Windows startup folder.(For Windows 10/11, press WIN+R, enter
shell:startup.)WSL2 version info
haoenz commentedon Sep 21, 2023
Will this fix in version 2.0.0 ?
OneBlue commentedon Mar 26, 2025
Thank you for patience !
This is solved by 2.5.4.
Setting:
in .wslconfig
Will prevent WSL distributions from timing out