Running Docker in Windows Virtual Machine

江枫思渺然 提交于 2021-01-27 12:16:54

问题


Using:

  • Docker Desktop for Windows 10
  • MobaXterm to RDP into a Windows 10 VM
  • Selenium 3.141.59

I'm currently trying to run a selenium Grid within a docker container and I'm encountering some issues. I have both Hyper-V and Containers enabled on both my PC and the VM.

The problem is that unlike my previous coworkers, I'm using a Windows VM instead of a Linux one. When I try to run docker within the virtual machine it says that I need to enable nested virtualization.

Is this correct or should I not even be running Docker on the VM and instead on my physical machine?


回答1:


Docker on Windows requires a VM to be able to run the docker daemon (Virtualbox or Hyper-V) so in your choice you are running a VM inside another VM, thats why you need nested virtualization.

Docker Desktop is already isolated from the host with a VM, you don't need to run an additional VM instance.



来源:https://stackoverflow.com/questions/55229900/running-docker-in-windows-virtual-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!