What command should I issue before the wsl --shutdown
to shutdown the Docker engine without danger of loosing data?
I'm not sure about a "command" (which would be nice, since I prefer keyboard interaction over the mouse for most things), but at the moment I'm just using the GUI. To make sure that Docker Desktop is safely shut down, I go to the Windows Taskbar icon (usually in "Hidden Icons"/overflow, unless you've configured it otherwise), right-click, and Quit Docker Desktop.
There may be a way to script it. I did try taskkill
(without) the /f
(force) option, but that didn't work.
It sounds like rmlogotest.exe
, which is a tool for sending Windows shutdown messages to applications might work.