I currently have Docker for Windows 1.12.0 using the Linux server. I would like to try the new Windows Images (windows server core/nano), but does that mean that I need to uninstall the current Linux version to use the Windows version?
I think that would be great to have a proper documentation about this.
But, to start with, I am not too sure to understand fully.
At which point of the install should we run? .\dockerd.exe -H npipe:////./pipe/win_engine --register-service
Also every time you want to use the Windows images we would have to use the -H option? That seems super annoying.
Any plan to get around this by being able to set some alias?
C:\Users\mikeb
λ “%programfiles%\Docker\Docker\Resources\dockerd.exe” -H npipe:////./pipe/win_engine --debug --experimental
time=“2017-06-06T23:04:27-04:00” level=warning msg=“Running experimental build”
Error starting daemon: pid file found, ensure docker is not running or delete C:\ProgramData\docker\docker.pid
So I need 2 dockerd installation with different pid, root, domain socket, … That’s really become complicate.
I can switch of environment, like that:
C:\Users\mikeb
λ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e942a51f07e7 centos “bash” 16 seconds ago Up 15 seconds nifty_mirzakhani
C:\Users\mikeb
λ “c:\Program Files\Docker\Docker\DockerCli.exe” -SwitchDaemon & docker -D info -f {{.OSType}}
windows
C:\Users\mikeb
λ docker run -dit microsoft/nanoserver
1704dbe7d8409a5140ab3dfd859569167ee362222d4b18335046aa50e3196663
C:\Users\mikeb
λ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1704dbe7d840 microsoft/nanoserver “c:\windows\system…” 11 seconds ago Up 7 seconds gracious_thompson
C:\Users\mikeb
λ “c:\Program Files\Docker\Docker\DockerCli.exe” -SwitchDaemon & docker -D info -f {{.OSType}}
linux
C:\Users\mikeb
λ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e942a51f07e7 centos “bash” About a minute ago Up About a minute nifty_mirzakhani
But the problem, you cannot switch daemon when docker is executing a command ( like dock pull) because the command will be aborted. Also the first switch is really slow.