Docker command line to switch to running linux containers on Windows Core machine

Dockercli -SwitchDaemon option should help here.

$ ./DockerCli.exe
Usage: DockerCli.exe [-SwitchDaemon] [-Version]
-Version: Show the Docker for Windows version information
-SwitchDaemon: Point the Docker CLI to either Linux containers or Windows containers
-SharedDrives: List the shared drives

You can control which engine you want to switch with using option.

-SwitchLinuxEngine
-SwitchWindowsEngine

More info here.

Hope this helps.

Update:

DockerCli.exe can be found in Program Files folder.

In my case it was here /c/Program\ Files/Docker/Docker/DockerCli.exe

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)