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,280 points
49 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
• 9,530 points

Related Questions In DevOps & Agile

0 votes
1 answer

How does Docker for Windows run Linux containers?

Docker for Windows still uses a Linux ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,280 points
53 views
0 votes
1 answer

How does Docker-for-selenium on Windows work?

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

answered Nov 22, 2018 in DevOps & Agile by Tyrion anex
• 8,280 points
33 views
0 votes
1 answer
0 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
• 56,520 points
136 views
0 votes
1 answer