简体   繁体   English

在Windows10的浏览器中本地运行Docker:错误-未找到IP

[英]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: 这是我成功完成的事情:

  • Installed Docker CE on my Windows 10 Machine 在我的Windows 10计算机上安装了Docker CE
  • Setup a new virtual switch in Hyper-V Manager per these instructions and restarted the computer. 按照以下说明在Hyper-V管理器中设置新的虚拟交换机,然后重新启动计算机。
  • Created a new machine using this line of code 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. 但老实说,我不知道下一步该怎么做。

HyperV Manager屏幕截图

虚拟交换机管理器屏幕截图

PowerShell Docker网络和Docker机器屏幕截图


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: 这是捕获此内容的另一个屏幕截图:

Powershell和Virtual Switch Manager屏幕截图

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.

相关问题 Docker 在 Windows10 中不起作用 - Docker not working in Windows10 为什么docker切换到Linux在Windows10 pc上包含错误? - Why docker switch to Linux containes error on Windows10 pc? 等同于适用于Windows10 / hyperV的新docker的boot2docker ip - Equivalent to boot2docker ip for new docker for windows10/hyperV 在 Docker 中导入未找到错误,但在本地运行时没有 - Import Not Found Error in Docker but not while running locally Docker在Windows10上:没有未知的匹配清单? - Docker On Windows10: No matching manifest for unknown? Windows10 上的 Kafka、Linux/Docker 和 IntelliJ - Kafka, Linux/Docker and IntelliJ on Windows10 Docker / nginx [windows10]-更改链接文件夹上的页面并直接在浏览器中显示更改 - Docker/nginx [windows10] - change page on linked folder and show changes directly in the browser 在我的主机windows10上运行docker和64位linux VM - Running docker and 64 bit linux VM on my host windows10 连接到 MongoDB 配置服务器以在 windows10 上运行的 docker 容器上进行分片 - Connect to MongoDB config server for Sharding on a docker container running on windows10 连接到 MongoDB 查询路由器以在 windows10 上运行的 docker 容器上进行分片 - Connect to MongoDB query router for Sharding on a docker container running on windows10
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM