如何检查Docker是否在Windows上运行? [英] How to check if Docker is running on Windows?
本文介绍了如何检查Docker是否在Windows上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何通过命令行(cmd或powershell)检查Docker是否在Windows上运行.
I'd like to know how to check if Docker is running on Windows by means of the command line (cmd or powershell).
尽管,我发现了几篇文章指出了解决方案,但它们都适用于Linux环境:
Although, I've found several posts indicating the solution to this, they are for Linux environments:
我找不到Windows系统的答案.
I couldn't get the answer for Windows systems.
推荐答案
尝试在Powershell或cmd上运行以下命令之一,如果已安装docker,则应获得无错误的响应:
Try running either of these commands on Powershell or cmd, if docker is installed, you should get a error free response:
docker --version
或 docker-compose --version
或 docker ps
这篇关于如何检查Docker是否在Windows上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文