我可以在虚拟机中运行Docker吗? [英] Can I run Docker in a Virtual Machine?

查看:577
本文介绍了我可以在虚拟机中运行Docker吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在虚拟机上运行Docker。

I tried to run Docker on a virtual machine.

Host : MacBook 
VM : Parallels Windows 7

并发生错误:

有可能吗?

推荐答案

您正在Windows VM中使用Docker Machine,实际上将在Mac的Windows VM中创建Linux VM。您可以这样做,但是您需要启用嵌套虚拟化-我不确定您可以可以在Parallels 7中完成。

You're using Docker Machine in your Windows VM, which is actually going to create a Linux VM inside the Windows VM on your Mac. You can do that, but you need to enable nested virtualization - which I'm not sure you can do in Parallels 7.

相反,您可以直接在Mac上和使用Parallels创建Linux VM -这意味着Docker在Mac上的Linux VM中运行,并且您不需要嵌套的虚拟化。

Instead you can run Docker Machine on the Mac directly and use Parallels to create the Linux VM - which means Docker is running in a Linux VM on your Mac, and you don't need nested virtualization.

或者最好使用适用于Mac的Docker ,如果您的操作系统支持的话,最新产品,并且比Docker Machine具有更好的主机集成。

Or preferably use Docker for Mac if your OS supports it, it's the latest product and has much better host integration than Docker Machine.

这篇关于我可以在虚拟机中运行Docker吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆