Docker on Windows server 2016 how to switch to linux container RRS feed

  • Question

  • I Installed docker on Windows Server 2016.

    like described here:

    Install-Module -Name DockerMsftProvider -Force
    Install-Package -Name docker -ProviderName DockerMsftProvider -Force
    Restart-Computer -Force

    Now the container runs per default as windows container but i want to have it running linux container.

    On My desktop machine I've a tray icon where i can switch this. but on there server there isn't one

    So what do i have to do tochange to linux container or how to get the tray icon?

    • Edited by Gentlehag Tuesday, April 4, 2017 5:20 PM
    Tuesday, April 4, 2017 5:20 PM

All replies

  • & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon

    I think that will do it.

    See here:

    • Proposed as answer by Myles Keating Wednesday, April 12, 2017 6:26 PM
    Wednesday, April 12, 2017 6:26 PM
  • Hi

    I face the similar issue. Any idea how to make linux containers work on windows server 2016?

    Friday, June 9, 2017 6:54 AM
  • This does not work as it related to windows 10 and not windows server 2016.
    Wednesday, June 21, 2017 4:43 AM
  • Hi Gentlehag,

    You cannot run Linux containers on Windows server 2016 yet. Microsoft announced Linux Containers on windows server 2016 using windows hyper-v containers. There is no release date for that yet.

    On windows 10, using "Docker for Windows", Linux containers run inside a full Hyper-v VM.


    Jorge Arteiro

    • Proposed as answer by Nedim Mehic Wednesday, July 12, 2017 6:11 AM
    Wednesday, July 5, 2017 1:01 AM
  • This issue is still very difficult to overlook.

    There seems to be some workarounds, but I hoped that the official Docker software would support Linux containers on Windows Server 2016.

    The release notes for Docker EE 17.06 say "Docker EE is functionally equivalent to the corresponding Docker CE that it references". But I still can't see any switch to Linux containers.

    In the meantime there is also a Docker CE version from the edge channel which should work on Windows Server 2016. But the latest 17.07.0-ce-rc-win32 (13024) version does even not start on Windows Server 2016 or refuses to start as soon I switch to Linux containers (Error Message: "Error response from daemon: Bad response from Docker engine at Docker.Backend.DockerDaemonChecker.Check(Func`1 isDaemonProcessStillRunning...")

    It is also not clear if it is possible to have Docker EE and Docker CE side by side on Windows Server 2016.

    Thursday, August 24, 2017 2:01 PM
  • As on Jan 2019  - This does not work on Windows Server 2016. 
    Wednesday, January 23, 2019 4:13 PM