Windows docker"docker ps"不管用 [英] Windows docker "docker ps" is not working
问题描述
我是Docker的新手.
I'm new to docker.
Docker已启动.但是出现了下面的错误.
Docker is started. But bellow error got.
连接期间错误:获取 http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/containers/json :打开//./pipe/docker_engine:系统找不到指定的文件.在Windows上的默认守护程序配置,docker客户端必须为高架运行以进行连接.此错误也可能表明docker守护程序未运行.
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/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.
推荐答案
我遇到了类似的问题,并在Windows PowerShell中使用以下两个命令对其进行了修复:
I faced the similar issue and I fixed it using the following two commands in Windows PowerShell:
PS C:\WINDOWS\system32> cd "C:\Program Files\Docker\Docker"
PS C:\Program Files\Docker\Docker> ./DockerCli.exe -SwitchDaemon
这篇关于Windows docker"docker ps"不管用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!