Windows docker"docker ps"不管用 [英] Windows docker "docker ps" is not working

查看:80
本文介绍了Windows docker"docker ps"不管用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆