dockerhyper-vhypervisor

Can I disable Hyper-V feature if I have Docker installed


I have installed Docker on Windows10 to work with single-node Hadoop cluster and enabled Hyper-V feature for it. Now I don't need it, but I don't want to drop docker containers. Can I disable Hyper-V feature for some time and enable it, when I need to work with docker again? Or it might somehow affect existing containers?


Solution

  • Docker is heavily built on deep Linux kernel features which Windows does not support (such as cgroups and namespaces) which is why Docker on Windows 10 can use one of 2 backends: Hyper-V or WSL2 which in turn is also based on Hyper-V.

    It is possible, although not recommended to setup a Windows container on a Windows host without using Hyper-V basing on windows process isolation. This seems to be irrelevant to your case as you ask about Hadoop cluster which seems to be supported only on linux. So it seems that even if you manage to setup docker to work without Hyper-V, setting up an Hadoop cluster will be impossible.

    What is you concern? Is it about performance? Why would you like to turn Hyper-V off?