windows Docker 警告:无法从守护程序获取默认注册表端点

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43058226/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:51:09  来源:igfitidea点击:

Docker warning: failed to get default registry endpoint from daemon

windowsdockerdocker-machine

提问by symlink

On Windows 10, when I call a docker command:

在 Windows 10 上,当我调用 docker 命令时:

docker pull mongo:windowsservercore

I get the following output:

我得到以下输出:

Warning: failed to get default registry endpoint from daemon (error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.26/info: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.). Using system default: https://index.docker.io/v1/

When I docker-machine create default

当我 docker-machine create default

(default) Waiting for an IP...
Error creating machine: Error in driver during machine creation: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded

回答by Mark Ewer

I got the same error running Docker for Windows on Windows 10 Pro. The solution was to open the Docker settings and turn on the Daemon. Right-click on the taskbar icon and choose settings. Then, turn on the daemon per the image below.

我在 Windows 10 Pro 上运行 Docker for Windows 时遇到了同样的错误。解决方案是打开 Docker 设置并打开守护程序。右键单击任务栏图标并选择设置。然后,按照下图打开守护程序。

Option To Choose

选项选择

回答by Leo Y

You probably use Docker for WindowsOpenSource solution to have Docker running on Windows 10. In that case, the reason is that your docker CLI cannot work without daemon. Run the Docker daemon (you probably have an icon on your desktop) and once it reports that it is ready, try again your commands.

您可能使用Docker for WindowsOpenSource 解决方案来让 Docker 在 Windows 10 上运行。在这种情况下,原因是您的 docker CLI 在没有守护进程的情况下无法工作。运行 Docker 守护进程(您的桌面上可能有一个图标),一旦它报告它已准备就绪,请重试您的命令。

回答by Basil Musa

I just restarted docker on Windows from the tray icon, right-click, then "Restart".

我刚刚从托盘图标在 Windows 上重新启动了 docker,右键单击,然后“重新启动”。

回答by Narayana Swamy

This got resolved for me and was able to install once Right Click Docker icon on task bar and clicked on "Switch to Windows Container"

这对我来说得到了解决,并且能够安装一次右键单击任务栏上的 Docker 图标并单击“切换到 Windows 容器”

回答by Chai

I am getting this error too. I had installed docker via the docker toolbox. Had tried the docker windows installer but it said I needed the pro version of windows 10 (had the win10 home version).

我也收到这个错误。我已经通过 docker 工具箱安装了 docker。曾尝试过 docker windows installer,但它说我需要 windows 10 的专业版(有 win10 家庭版)。

Anyways, if I run the commands via the Docker Quickstart Terminal, this problem goes away. ie. use Docker Quickstart Terminal instead of your command prompt.

无论如何,如果我通过 Docker 快速入门终端运行命令,这个问题就会消失。IE。使用 Docker 快速入门终端而不是命令提示符。