[英]How to reach and check if docker engine is running in wsl2 from windows
[英]How can I stop the docker engine running integrated on WSL2 from the command line?
我在 Windows 上運行 WSL2,在 WSL 中使用 Ubuntu 分布,並使用集成的“基於 WSL2 的引擎”在 Docker 桌面上運行。
如果我在 CLI 中執行wsl --shutdown
,Docker Desktop 會抱怨后端意外關閉。
我應該在wsl --shutdown
之前發出什么命令來關閉 Docker 引擎而不會有丟失數據的危險?
我應該在
wsl --shutdown
之前發出什么命令來關閉 Docker 引擎而不會有丟失數據的危險?
我不確定“命令”(這很好,因為在大多數情況下我更喜歡鍵盤交互而不是鼠標),但目前我只是使用 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 .
可能有一種編寫腳本的方法。 我確實嘗試了taskkill
(沒有) /f
(強制)選項,但這沒有用。
聽起來像rmlogotest.exe
,它是一個向應用程序發送 Windows 關閉消息的工具,它可能會起作用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.