简体   繁体   English

Docker Machine Virtual Box驱动程序问题

[英]Docker Machine Virtual Box Driver Issue

I tried Docker machine for creating bare docker based VM using virtual BOX driver,When I tried changing the network from NAT to Bridge machine start showing error and no IP is assigned to the machine by the docker-machine.In addition to that, when I tried taking SSH of the machine it hangs my terminal. 我尝试使用Docker机器使用虚拟BOX驱动程序创建基于裸Docker的虚拟机,当我尝试将网络从NAT更改为Bridge机器时开始显示错误,并且docker-machine没有将IP分配给该机器。试图采取SSH的机器挂我的终端。 Is it only me or every one is facing this problem? 是我一个人还是每个人都面临这个问题? Any solution to that.? 有什么解决办法吗?

docker-machine expects the NAT and Host interfaces to be there. docker-machine希望NAT和Host接口在那里。

Add the bridged adapter as "Adapter 3" rather than replacing either of the first two. 将桥接适配器添加为“适配器3”,而不是替换前两个适配器。 Make sure you select the same Intel PRO/1000 MT Desktop Adapter type as the other two adapters (under Advanced ). 确保选择与其他两个适配器相同的“ 英特尔PRO / 1000 MT桌面适配器”类型(在“ 高级”下)。

You will end up with a third interface, eth2 . 您将最终获得第三个接口eth2 docker-machine ssh will still work. docker-machine ssh仍然可以工作。 You can then access the VM on your real network too. 然后,您也可以在实际网络上访问VM。

5: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:b0:a2:87 brd ff:ff:ff:ff:ff:ff
    inet 10.10.1.17/24 brd 10.10.1.255 scope global eth2
       valid_lft forever preferred_lft forever

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM