适用于Windows 10的Docker //.//pipe/docker_engine:访问被拒绝 [英] Docker for Windows 10 //./pipe/docker_engine: access is denied

查看:2294
本文介绍了适用于Windows 10的Docker //.//pipe/docker_engine:访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照 MSDN

我可以在提升 Powershell中执行 docker.exe 命令环境,但不在常规powershell 中。

I have installed docker for Windows 10 (Anniversary) as per MSDN
I can execute docker.exe commands in an elevated powershell environment, but not in a regular powershell.

我已将docker配置文件更新为包含:

I have updated the docker configuration file to contain:

{
    "group": "Power Users"
}

并且显然将用户添加到了高级用户中,该用户也在管理员组中

And have obviously added the user to power users, the user is also in the administrators group.

有什么方法可以执行docker命令,例如 docker search * 而不使用 run作为管理员

Is there any way to execute docker commands such as docker search * without using run as administrator


警告:无法从守护程序获取默认注册表端点(连接期间出错:获取 http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.25/info :打开//.//pipe/docker_engine:拒绝访问。)。使用系统默认值:在操作期间 https://index.docker.io/v1/
错误connect:获取 http://% 2F%2F。%2Fpipe%2Fdocker_engine / v1.25 / images / search?limit = 25& term =%2A 打开//.//pipe/docker_engine:拒绝访问。

Warning: failed to get default registry endpoint from daemon (error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.25/info: open //./pipe/docker_engine: Access is denied.). Using system default: https://index.docker.io/v1/ error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.25/images/search?limit=25&term=%2A: open //./pipe/docker_engine: Access is denied.


推荐答案

尽管我的用户具有管理员权限,但是我不需要使用提升的PowerShell运行docker。

Although my user has Administrator privileges, I don't need to use an elevated PowerShell to run docker.

您可以尝试通过TCP建立连接。在Power Shell中输入:

You can try making the connection via TCP. In Power Shell type:

$env:DOCKER_HOST="tcp://0.0.0.0:2375"
docker ps

$env:DOCKER_HOST="tcp://localhost:2375"
docker ps

从17.03.1-ce-win12版本(12058)开始,如果您使用Windows Docker并通过TCP进行连接,则必须选中在不带TLS的tcp:// localhost:2375上公开守护程序

Since version 17.03.1-ce-win12 (12058) you must check Expose daemon on tcp://localhost:2375 without TLS if you use Docker for Windows and connecting via TCP

致谢

这篇关于适用于Windows 10的Docker //.//pipe/docker_engine:访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆