zoukankan      html  css  js  c++  java
  • Docker中的error during connect异常情况2

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

    C:UsersAdministrator>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 阅读

  • 相关阅读:
    C#网络爬虫 WebUtility使用 转义字符 urlCode
    C#遍历文件夹及文件
    ThreadException
    unhandledException
    linq to object
    扩展方法
    反射常规
    字典缓存和泛型缓存
    lock和Monitor(锁对象)
    单例模式
  • 原文地址:https://www.cnblogs.com/kendoziyu/p/15117449.html
Copyright © 2011-2022 走看看