wsl
如何讓 WSL 持續在背景作業
最近為了方便一些作業所以把 Docker 安裝在 WSL 上,但常常會發生 WSL 的 terminal 關掉的話就會造成裡面跑的 Docker 也一併被關掉,Google 了一下發現不少人有這問題,最終的解決方案如下: 1. 在 %userprofile%/.wslconfig 設定 [wsl2] vmIdleTimeout=-1 2. 設定結束後記得重啟 wsl wsl --shutdown 3. 執行以下 command wsl --exec dbus-launch true Ref: * How to make wsl2 alive in the background #10138