boot2docker windows 网络接口

boot2docker windows network interfaces

我很难通过 boot2docker(v1.5.0,virtualbox v4.3.20)在 windows 上设置 docker。

第一次安装失败,因为虚拟机上没有出现守护进程。所以我卸载了 Virtualbox 和 Boot2Docker。重新安装后机器可以正常启动。

我想将 boot2docker 用于 google App Engine 管理的虚拟机,所以我需要为其设置环境变量(boot2docker shellinit 不起作用因为它使用应该在 windows 上设置的导出)。所以它手动设置它们。

DOCKER_HOST=tcp://192.168.59.103:2376

IP 地址是我通过调用 boot2docker ip 获得的 IP 地址。它在机器本身上作为 eth1 可用。

如果我尝试从我的主机连接 (icmp) 到机器,它会失败,因为没有到虚拟机的路由。我的 Windows 8.1 主机上的虚拟网络设备(没有其他虚拟网络适配器)如下所示(德语版本请见谅):

   Beschreibung. . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
   Physische Adresse . . . . . . . . : 08-00-27-00-54-98
   DHCP aktiviert. . . . . . . . . . : Nein
   Autokonfiguration aktiviert . . . : Ja
   Verbindungslokale IPv6-Adresse  . : fe80::bcb5:aa66:d0ce:25c4%30(Bevorzugt)
   IPv4-Adresse  . . . . . . . . . . : 192.168.56.1(Bevorzugt)
   Subnetzmaske  . . . . . . . . . . : 255.255.255.0
   Standardgateway . . . . . . . . . :

我的猜测是该设备应该从 virtualbox 的 ip 范围中获取一个 ip 地址,例如 192.168.59.x

我通过在 NAT 设备上设置端口转发找到了解决方法,但这会导致一些其他问题。

我做错了吗?这是一个错误吗?

显然 Google boot2docker 上的托管 VM 存在一些问题。

我找到了适用于我的 Ubuntu 14.04 机器和 windows 8.1 机器的解决方案。可以在此处找到分步指南:https://gist.github.com/xuru/604da3c02ec96904d352

最关键的好像是某版本图片的下载:

boot2docker download --iso-url=https://github.com/boot2docker/boot2docker/releases/download/v1.3.3/boot2docker.iso