• 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 阅读

  • 相关阅读:
    linux sed命令详解
    SQL注入基础知识
    DC-7
    DC-6
    DC-5
    DC-4
    DC-3
    DC-2
    pentestlabs
    任意文件读取和下载
  • 原文地址:https://www.cnblogs.com/kendoziyu/p/15117449.html
Copyright © 2020-2023  润新知