#Docker for windows vs docker keygen
![docker for windows vs docker docker for windows vs docker](https://m-square.com.au/wp-content/uploads/2018/07/How-to-Get-Yr-Apps-Blog-image-1.jpg)
![docker for windows vs docker docker for windows vs docker](https://miro.medium.com/max/1154/1*yZn6JjeROWijWiyypXq8zw.png)
I knocked up this PowerShell script that you can run passing in the parameter for Windows or Linux and it will switch the docker daemon if its not currently set to the flavour you specify.
![docker for windows vs docker docker for windows vs docker](https://s3.ap-south-1.amazonaws.com/s3.studytonight.com/tutorials/uploads/pictures/1585895077-1.png)
This package was and still is called docker. One thing that strikes you about the command line switch is that it simply flips between Windows and Linux containers, it doesn’t let you specify a particular flavour which is not great. Ahmet Alp Balkan working at Microsoft at that time ported the Docker CLI to Windows so we had the docker.exe to communicate with remote Docker engines running in a Linux machine. Note: the command line parameter “SwitchDaemon” is case sensitive, if you don’t supply it in the correct case you don’t get any error and the daemon is not switched. "%programfiles%\docker\docker\dockercli" -SwitchDaemon Thankfully its possible to switch the docker tooling between Windows and Linux from the command line, however the syntax is not the most obvious or discoverable. Given that pretty much everything else for Docker is achieved via the command line it feels like quite a jolt to have to leave the command line to switch container flavours, often you’ll forget and get an error when trying to build or pull. By default, the Docker Windows containers may be run, but a feature toggle is provided, as shown in Figure 12, to Switch to Linux Containers. To do this you have to bring up the tray icon for Docker Tools select the option to switch flavours. With the Docker daemon running, Docker commands may be used to run Docker Windows containers or the Docker Linux container. This enables the application to run in a variety of locations, such as on-premises, in public or private cloud. Windows ends lines in a carriage return and a linefeed rn while Linux and macOS only use a linefeed n. Docker can package an application and its dependencies in a virtual container that can run on any Linux, Windows, or macOS computer. If you use Docker for Windows on Win10 and use both Linux and Windows containers you’ve no doubt have had to switch the docker tools between Linux and Windows containers more than a few times. Docker for Windows: Dealing With Windows Line Endings One of the issues with Docker (or any Linux/macOS based system) on Windows is the difference in how line endings are handled.