How to use Linux Docker container on Windows VM

Is there a way to switch the Docker Engine on Windows to Linux, so that I am able to run Linux Docker container?
The default is set to:

Client: Docker Engine - Enterprise
 Version: 19.03.4
 API version: 1.40
 Go version: go1.12.10
 Git commit: 9e27c76fe0
 Built: 10/17/2019 23:42:50
 OS/Arch: windows/amd64
 Experimental: false

Server: Docker Engine - Enterprise
 Engine:
  Version: 19.03.4
  API version: 1.40 (minimum version 1.24)
  Go version: go1.12.10
  Git commit: 9e27c76fe0
  Built: 10/17/2019 23:41:23
  OS/Arch: windows/amd64
  Experimental: false
6 Likes

Thanks for your feedback and sorry for late response.

Experimental feature is disabled on windows runner os by default, could you please try on self-hosted runner?

> could you please try on self-hosted runner?

I don’t have any self-hosted runner at hand. Is there another way to use Linux container on Windows?

5 Likes

Is there any update on this being made available.

I am attempting to run automated web testing on a windows server but my environment requires a docker container built only for Linux.

If this is not something you are officially looking to support in the near future, can anyone suggest a workaround for it or a way I can run the web based testing on a Linux environment.

Regards,

Stuart

2 Likes

Hi, I have the same issue and would love a solution here. One idea I saw online was to manually switch it with this command, but it is not working for me. Can you please advise?

Start-Process $Env:ProgramFiles\Docker\Docker\DockerCli.exe -ArgumentList "-SwitchLinuxEngine"

Any update on this? It would be great to run linux containers on the windows VM’s. I want to run my e2e tests on IE and Edge browsers available in windows. Since i am not able to bring up my containerised application in windows, i cant do it.