Search code examples
dockervirtual-machineparallels

Can I run Docker in a Virtual Machine?


I tried to run Docker on a virtual machine.

Host : MacBook 
VM : Parallels Windows 7

And error occurs:

enter image description here

Is it possible?


Solution

  • 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.

    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.

    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.