Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running linux container on docker windows

I installed Docker for windows on a windows 10 box. It required me to enable the HyperV feature on it. Everything installed correctly and is running fine.

Although one thing took me by surprise. I am actually able to run a linux container on docker windows. I thought cross-containerization is not possible conceptually. Can anyone please help me understand how does this work?

like image 416
jaakash Avatar asked Sep 23 '16 14:09

jaakash


2 Answers

HyperV is used to spin up a Linux VM to run containers. Docker is still running Linux containers under the covers, the native Windows containers are still being developed.

like image 107
BMitch Avatar answered Sep 24 '22 20:09

BMitch


Basically, you are running a Linux Container on a Linux Machine rather than Windows. Windows runs a VM in Hyper-V when you download the Docker for Windows. You can open Hyper-V Manager and see a Linux VM will be running. Currently Docker for Windows is in beta which supports the Docker natively which needs Windows 10 build no. greater than 14393.222 or a Windows Server 2016.

like image 31
Ali Kahoot Avatar answered Sep 24 '22 20:09

Ali Kahoot