![](/img/trans.png)
[英]How can I stop the docker engine running integrated on WSL2 from the command line?
[英]How to reach and check if docker engine is running in wsl2 from windows
Docker 引擎(不是 docker-desktop)安裝在 wsl2 中並監聽端口 2375。我想確保它是從外部運行的,即 windows 並且引擎的狀態是健康的。
是否有任何 rest 端點來檢查 docker 是否健康。 例如 http://ip-of-wsl2:2375 返回:
{"message":"page not found"}
您可以使用 /info 端點,即http://ip-of-wsl2:2375/info
。 響應具有您可以檢查的SystemStatus
字段。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.