从运行virtualbox的外部主机连接docker

我的主机(主)是Windows 10
安装运行Ubuntu的虚拟框
启动虚拟机之后,我安装了docker for ubuntu
拉图像(odoo和postgres),并通过localhost:8069成功启动Odoo应用程序
我切换回我的主机是Windows 10。

我怎样才能连接我的Windows 10的我的odoo应用程序?
另外,我的同事如何在同一个networking上访问我的odoo应用程序?

希望你能帮助我,谢谢:)

为了能够从你的Windows机器进行连接,你可以通过select虚拟机并进入Settings > Network > Advanced > Port forwarding并添加一个具有Host port 8069Guest Port 8069的条目来启用端口转发。 现在从Windows可以连接到localhost:8069 。 在这种情况下,其他节点可以连接到您的机器以访问应用程序<machine-dns-name>:8069 <machine-ip>:8069

或者,您可以通过运行ifconfig并使用该ip通过<ubuntu-vm-ip>:8069从Windows连接来findUbuntu VM的IP地址<ubuntu-vm-ip>:8069