How does Docker for Windows run Linux containers

0 votes

In the older versions of Docker for Windows, I remember it explicitly said it used a linux VM for the kernel.

But since the new stable version (released in July 2016 I think), it says

Docker for Windows is a native Windows application with a native user interface and auto-update capability, deeply integrated with Windows native virtualization, Hyper-V, networking and file system

If I understand correctly, the specified base image is for the user space and the host's kernel is used. So, if I specify that I'm using an ubuntu base image to run the echo command, how does the Windows kernel come into play?

Aug 24, 2018 in DevOps & Agile by Sophie may
• 10,610 points
763 views

2 answers to this question.

0 votes
Docker for Windows still uses a Linux VM to run Linux containers. But instead of using Virtual Box (which is what is used with Docker Toolbox), the Linux VM is run using Hyper-V - a Windows-native hypervisor. This means that Docker for Windows ships fewer components and has less moving parts.

If you install Docker for Windows and run docker version you'll see that the Docker Linux daemon is running on "Moby Linux"
answered Aug 24, 2018 by Tyrion anex
• 8,700 points
0 votes

One of the most important enhancements is that Docker can now run Linux containers on Windows (LCOW), using Hyper-V technology. Running Docker Linux containers on Windows requires a minimal Linux kernel and userland to host the container processes.

answered Aug 29, 2020 by Pistle
• 1,000 points

Related Questions In DevOps & Agile

0 votes
1 answer

Why does Docker for Windows make you pick either Windows or Linux containers?

Windows machine contains several components and one ...READ MORE

answered Nov 15, 2018 in DevOps & Agile by Sophie may
• 10,610 points
537 views
0 votes
1 answer
0 votes
1 answer

How can a script identify the difference between Docker Toolbox and Docker for Windows?

Now, the Toolbox works through docker-machine. The way ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
563 views
+1 vote
3 answers
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,090 points
2,435 views
0 votes
1 answer

How to a run deployed app in Docker for Windows?

To deploy an ASP.NET web application to ...READ MORE

answered Aug 30, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
878 views
0 votes
1 answer

How does Docker-for-selenium on Windows work?

In order for windows to support the ...READ MORE

answered Nov 23, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
618 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP