我可以在Mac VirtualBox VM中安装Docker吗? [英] Can I install Docker inside a Mac VirtualBox VM?

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

问题描述

我有一个Mac Sierra 10.12 OS虚拟机,使用VirtualBox托管在Windows 10 Home上.

I have a Mac Sierra 10.12 OS virtual machine, hosted on Windows 10 Home using VirtualBox.

我想在此Mac VM中运行Docker,但是当我尝试时,出现以下错误消息:

I would like to run Docker inside this Mac VM, but when I try, I get the below error message:

错误

检测到不兼容的CPU.

Incompatible CPU detected.

很抱歉,您的硬件与Docker Desktop不兼容.

We are sorry, but your hardware is incompatible with Docker Desktop.

Docker需要具有虚拟化功能和虚拟机管理程序支持的处理器.

Docker requires a processor with virtualization capabilities and hypervisor support.

要了解有关此问题的更多信息,请参阅:

To learn more about this issue, see:

https://docs.docker.com/docker-for-mac/troubleshoot

我知道我的机器(HP Envy,英特尔酷睿i5)已启用Hyper-V.据我所知,这不是硬件问题.我的i5处理器支持Hyper-V,因此支持SLAT,即EPT.我非常确定这与导致问题的VM设置有关.

I know that my machine (HP Envy, intel core i5) has Hyper-V enabled. As far as I can tell, it is NOT a hardware issue. My i5 processor supports Hyper-V therefore supports SLAT ie EPT. I am very sure it is something to do with my VM settings which is causing the issue.

我无法使用Docker Toolbox,因为我需要Mac专用的Docker Desktop在我的VM中运行某些Beta软件.

I am unable to use Docker Toolbox instead, as I need Docker Desktop for Mac specifically to run some Beta software inside my VM.

如果有人能够帮助我使用Mac VM运行Docker,将不胜感激.

If anyone is able to help me run Docker using my Mac VM the help would be greatly appreciated.

PS.我的知识很有限,因为我不喜欢技巧,因此与noob兼容的说明非常棒! 谢谢!

PS. My knowledge is very limited as I am not techy, so noob-compatible instructions would be great! Thanks!

推荐答案

适用于Mac的Docker桌面使用HyperKit(请参见 https://docs.docker.com/docker-for-mac/install/),该反过来使用需要CPU EPT的xhy.ve(

Docker Desktop for Mac uses HyperKit (see https://docs.docker.com/docker-for-mac/install/), which in turn uses xhy.ve that requires CPU EPT (https://en.wikipedia.org/wiki/Second_Level_Address_Translation#EPT, https://github.com/moby/hyperkit).

人们说VB尚不支持嵌套虚拟化-请参见 https://forums.virtualbox.org/viewtopic.php?f=7&t=86922 .

People say that nested virtualization is not yet supported by VB - see https://forums.virtualbox.org/viewtopic.php?f=7&t=86922.

因此,我怀疑VB不提供EPT功能,因此Docker Desktop无法运行.

So I suspect that VB does not provide EPT feature and thus Docker Desktop cannot run.

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

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