error during connect
启动docker完毕,执行docker ps 时报错-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 de...
启动docker完毕,执行docker ps 时报错
- 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的守护进程没有运行。google查了下。有两种解决方案。我的docker是windows 版本,信息如下
or during connect: Get http://FpipeFdocker_engine/v1.40/containers/json: open //./pipe
Client: Docker Engine - Community
Version: 19.03.1
API version: 1.40
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:17:08 2019
OS/Arch: windows/amd64
Experimental: false
一种解决方案为:
cd "C:\Program Files\Docker\Docker"
DockerCli.exe -SwitchDaemon
到你C盘的docker文件夹下,执行第二行的命令。更换守护进程,不过我本人试了下,并不管用。
第二种方案。在你的docker desktop的小图标上右键,找到Setting--> General-->勾选Expose daemon on tcp localhost那个选项。重启
PS:分享下我的解决方案,从英文意思感觉是get不到一个链接上的config.json文件,所以我挂了个梯子,你们懂得,过了一会,执行了第一个方法,重启之后就可以了。
更多推荐
所有评论(0)