kendoziyu

今天在我的一台 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 ps命令就可以正常访问了:

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

参考博客

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

分类:

技术点:

相关文章:

  • 2021-11-28
  • 2021-12-07
  • 2022-01-15
  • 2022-12-23
  • 2021-10-09
  • 2021-10-15
  • 2020-10-28
  • 2021-07-11
猜你喜欢
  • 2021-08-11
  • 2021-06-19
  • 2021-08-29
  • 2021-08-29
  • 2021-08-25
  • 2021-08-29
  • 2021-08-29
相关资源
相似解决方案