无法连接到docker

无法连接到docker,docker,Docker,当我在命令提示符阶段化问题中执行docker命令时,如docker container ls或docker version 上面说 "error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon co

当我在命令提示符阶段化问题中执行docker命令时,如
docker container ls
docker version

上面说

"error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running."

如何解决这个问题

检查docker服务器是否正在运行,尝试从task manager重新启动或终止它,然后再次启动。

您使用的是哪个操作系统,您需要检查docker的状态是否处于活动状态。

是否使用root用户安装docker,并尝试使用其他用户运行?