How to run linux VM hosted by hyper-v which runs docker

5,134

Not sure on the Centos VM side - you do not need to enable it, but at hte moment you need to run a decently modern Intel processor (not AMD) as only that one supports nested virtualization.

It sounds convoluted, though. You would be better off running a Hyper-V Container on the windows server with one of the linux images https://blog.docker.com/2016/10/considerations-running-docker-windows-server-2016-hyper-v-vms/

Share:
5,134
Geoffrey McCosker
Author by

Geoffrey McCosker

Updated on September 18, 2022

Comments

  • Geoffrey McCosker
    Geoffrey McCosker over 1 year

    I have a Server 2016 hyper-v host I want to run a centos VM on that host that has docker installed on it

    Is this possible? Do I need to enable nested virtualization somewhere?

  • Geoffrey McCosker
    Geoffrey McCosker almost 7 years
    Im confused "You would be better off running a Hyper-V Container on the windows server with one of the linux images"- isn't this the same thing? by "one of the linux images" do you mean like a prebuild linux vm for running docker?
  • Geoffrey McCosker
    Geoffrey McCosker almost 7 years
    Reading that doc they say this is possible: "You can run a Hyper-V VM with a Linux OS on a physical host running Windows Server. Inside the VM, you can run containers built with Linux"- are there any docker docs or examples of how to do this I could not find any guidance on their website