简体   繁体   English

在 Windows 上使用 virtualbox 的 docker

[英]docker with virtualbox on windows

context:语境:

I have installed vagrant and virtual box.我已经安装了 vagrant 和 virtual box。 I can't change that setup because it's very delicate and important.我无法更改该设置,因为它非常微妙和重要。

Now when I install docker on windows 10, docker wants to enable hyper-v, but now I can't bring my virtual machine up with vagrant.现在当我在 windows 10 上安装 docker 时,docker 想要启用 hyper-v,但现在我无法使用 vagrant 启动我的虚拟机。

Question:题:

Since docker on mac uses the virtual box driver, is there a solution to make docker work with virtual box on windows?由于mac上的docker使用了virtual box driver,有没有办法让docker在windows上使用virtual box?

You can install docker directly inside the Linux VM instead of on the windows host.您可以直接在 Linux VM 中而不是在 Windows 主机上安装 docker。 Or you can install the older docker toolbox which is designed to run docker inside of a VirtualBox VM with docker-machine.或者您可以安装旧的docker 工具箱,该工具箱旨在使用 docker-machine 在 VirtualBox VM 内运行 docker。 Note that you'll see added challenges like a difference in how drives are shared for host volumes, and published ports go to the VM IP without the vpnkit forwarding to the host IP/localhost.请注意,您会看到更多的挑战,例如主机卷共享驱动器的方式不同,发布的端口转到 VM IP 而 vpnkit 没有转发到主机 IP/localhost。

As far as I know, there isn't.据我所知,没有。 But can't you just use Docker in your vagrant box?但是你不能只在你的 vagrant box 中使用 Docker 吗? For a more detailed description, look here. 有关更详细的说明,请查看此处。

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

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