How to switch Container OS on Windows Server 2022

New Contributor

I have installed docker on Windows Server 2022 (in Azure VM). Am able to run & build windows based container as per MS article https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/run-your-first-contai...

 

Further my requirement is to run Linux containers. In above MS article it is stated to use below command to switch between containers. 

 

 

 & $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemon

 

 

 

However, when I try to switch between containers OS using above command, it throws error that 'DockerCli.exe' is not recognized as a name of a cmdlet, function, script file, or executable program (see below screen).

 

Docker-CLI-SwitchContainerOS.jpg

 

How can I get DockerCli.exe?

Is there any other option to switch between containers OS on Windows Server 2022?

Is there a way to get DockerCli.exe as part of docker installation on Windows Server 2022?

 

Appreciate your help. Thank You.

 

0 Replies