[英]Running Docker locally in browser on Windows10: Error - IP Not Found
Ok, so here's my background first. 好的,所以这是我的背景。 I'm a noob in the world of commandline interfaces, but have been building websites off and on for a long time (10 yrs) using GUI's.
我在命令行界面领域是个菜鸟,但使用GUI的网站已经可以打开和关闭很长时间了(10年)。 So, I'm trying to make the switch to CLI's while also learning Docker.
因此,在尝试学习Docker的同时,我尝试切换到CLI。
Right now I'm stuck at trying to get Docker to load anything into my browser window. 现在,我一直试图让Docker将任何内容加载到我的浏览器窗口中。 Here's what I've done successfully:
这是我成功完成的事情:
docker-machine create -d hyperv --hyperv-virtual-switch "Primary Virtual Switch" manager1
docker-machine create -d hyperv --hyperv-virtual-switch "Primary Virtual Switch" manager1
Now here's where things get a little interesting. 现在,这里的事情变得有些有趣了。 When I run the above function (I've done it twice now) it stalls on the line:
Waiting for host to start...
当我运行上面的函数(我已经做了两次)时,它停在了网上:
Waiting for host to start...
I waited for five minutes to see if it would do anything, before killing the operation. 我等了五分钟,看它是否会做任何事情,然后才终止该操作。 (oh, did I mention I'm running PowerShell in Adminstrator Mode - right click on the icon to "run as administrator").
(哦,我是否提到我正在以管理员模式运行PowerShell-右键单击图标以“以管理员身份运行”)。
So when I re-open PowerShell to check if the new "manager1" machine has been created it comes back affirmative, but with this: 因此,当我重新打开PowerShell来检查是否已创建新的“ manager1”计算机时,它会返回肯定的名称,但与此同时:
PS C:\WINDOWS\system32> docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
manager1 * hyperv Running Unknown IP not found
As far as I can tell these are the steps that I need to take to get Docker to run locally in my browser window, but for the life of me, I'm lost! 据我所知,这些是使Docker在我的浏览器窗口中本地运行所需的步骤,但是我一生都迷失了!
Oh, I did downgrade my docker-machine version per a suggestion that I read in a git forum comment, but that was to remedy an issue with the docker-machine create
command. 哦,我确实按照git论坛评论中的建议降级了docker-machine版本,但这是为了解决
docker-machine create
命令的问题。 Part of me wonders if I'm doing too much. 我有一部分想知道我是否做得太多。 But I honestly don't know what to do next.
但老实说,我不知道下一步该怎么做。
UPDATE: 更新:
I don't know that this is progress, but in the Virtual Switch Manager, I did switch the external network device from the "Ethernet Connection" to the "Dual Band Wireless" option. 我不知道这是什么进展,但是在Virtual Switch Manager中,我确实将外部网络设备从“以太网连接”切换到“双频无线”选项。 Then I restarted my machine.
然后,我重启了机器。 Now I'm showing that the state of the machine is "Timeout".
现在,我显示计算机的状态为“超时”。 I've also started and stopped my "docker-machine manager1".
我还启动和停止了“ docker-machine manager1”。 It sites on the
(manager1) Waiting for host to start...
line for about half a minute, then proceed to the Waiting for SSH to be available...
where it just sits. 它位于
(manager1) Waiting for host to start...
行上大约半分钟,然后继续Waiting for SSH to be available...
在它所在的位置。 Here's another screen shot that captures this: 这是捕获此内容的另一个屏幕截图:
Ok, my confusion was a result of looking beyond the documentation and getting a little confused. 好的,我的困惑是由于超出文档范围而感到困惑。 I still don't have this fully figured out but everything I was attempting to accomplish is detailed in this getting started with Windows 10 pro article .
我仍然没有完全弄清楚这个问题,但是在Windows 10专业入门中,我试图完成的所有事情都有详细说明 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.