gpt4 book ai didi

docker - 无法在 docker 中创建机器

转载 作者:行者123 更新时间:2023-12-04 19:49:38 25 4
gpt4 key购买 nike

我刚刚在我的 Windows 7 机器上安装了 docker。当我启动 Docker QuickStart 时,出现以下错误,这似乎是在创建机器时:

Creating machine...
(default) Unable to get the latest Boot2Docker ISO release version: Get https:/
/api.github.com/repos/boot2docker/boot2docker/releases/latest: dial tcp 192.30.2
52.124:443: connectex: A connection attempt failed because the connected party d
id not properly respond after a period of time, or established connection failed
because connected host has failed to respond.
(default) Copying C:\Users\robot\.docker\machine\cache\boot2docker.iso to C:\Use
rs\robot\.docker\machine\machines\default\boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
Error attempting heartbeat call to plugin server: read tcp 127.0.0.1:60733->127.
0.0.1:60732: wsarecv: An existing connection was forcibly closed by the remote h
ost.
Error attempting heartbeat call to plugin server: connection is shut down
Error attempting heartbeat call to plugin server: connection is shut down
Error attempting heartbeat call to plugin server: connection is shut down
Error attempting heartbeat call to plugin server: connection is shut down
Error creating machine: Error in driver during machine creation: read tcp 127.0.
0.1:60733->127.0.0.1:60732: wsarecv: An existing connection was forcibly closed
by the remote host.
Looks like something went wrong... Press any key to continue...

最佳答案

docker/machine/issues/2773中也有类似的问题.

尝试看看在自己创建机器而不是使用快速启动时问题是否仍然存在:

找哪里docker-machine.exe已安装(或 copy the latest released one in your %PATH% )并从常规 CMD session 使用它:

首先测试现有机器:

# find the name of the machine created.
docker-machine ls
docker-machine env --shell cmd <nameOfTheMachine>
docker machine ssh <nameOfTheMachine>

然后尝试创建一个新的:
docker-machine create -d virtualbox <aNewMachine>
docker-machine env --shell cmd <aNewMachine>
docker machine ssh <aNewMachine>

关于docker - 无法在 docker 中创建机器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34746913/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com