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

0 votes
When using Docker for Windows, you must choose to either use Windows or Linux containers, but you can't use both at the same time.
Nov 15, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
551 views

1 answer to this question.

0 votes

Windows machine contains several components and one of them is Docker command line: the docker command that you use for everything-management.

Similarly, there is Docker daemon - A self-sufficient runtime for containers, the core. Docker daemons for Linux Containers and Windows Containers are different, but they listen for connections from the docker client on the same pipe. So one needs to be stopped for other to be started. This is the technical reason that you asked for.

But, you can observe that containers started for ex. in MobyLinuxVM is still running and available for connections when you switch to Windows containers. The only thing here is that you cannot manage them because the Docker daemon for Windows does not know how to manage Linux containers in MobyLinuxVM.

UPDATE: 

Docker for Windows 18.02 now supports Linux and Windows containers running side-by-side via LCOW, using a single Docker daemon.

Now you can use one docker daemon to manage both worlds, it's just about using the new --platform flag in docker pull.

answered Nov 15, 2018 by Sophie may
• 10,610 points

Related Questions In DevOps & Agile

0 votes
2 answers

How does Docker for Windows run Linux containers?

One of the most important enhancements is ...READ MORE

answered Aug 29, 2020 in DevOps & Agile by Pistle
• 1,000 points
787 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
625 views
+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,471 views
0 votes
1 answer
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