Docker中的error during connect异常情况2

今天在我的一台 WIN10 电脑上又遇到了 error during connect 的问题,真是烦人精。

C:\Users\Administrator>docker ps
error during connect: In the default daemon configuration on Windows, 
the docker client must be run with elevated privileges to connect.: 
Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json": 
open //./pipe/docker_engine: The system cannot find the file specified.

重点是 the docker client must be run with elevated privileges to connect.,Docker 客户端必须以特权连接!

以管理员身份运行

Docker中的error during connect异常情况2

接着你再输入docker ps命令就可以正常访问了:

Docker中的error during connect异常情况2

PS:网上很多文章都说让切换到 Windows Container,个人不太认同这种做法,因为这可能会导致 docker search 找不到某些镜像。因为镜像还和 Windows 或者 Linux 环境有关系。

参考博客

docker client must be run with elevated privileges to connect 阅读

上一篇:【卡卡谈Java】HashMap源码深度解析【重点】


下一篇:CF1156E Special Segments of Permutation