Docker on Mac | Docker windows image on Mac
WanttorunWindowsPowerShellinDockerContainer,onmacbook.UnabletopullWindowsimageasDockerruntimeissettolinux,andthereisnooptiontochangeittowindows.ButDockerdesktopinwindowsgivesoptiontochangeruntimefromlinuxtowindows.IsthereacommandthaticanusetoswitchruntimeonDockerDesktoponmac?dockerpullmcr.microsoft.com/windows/servercore:2004-amd64[1]Referencesmcr.microsoft.com/windows/servercore:2004-amd64(mcr.microsoft.com)
Want to run Windows PowerShell in Docker Container, on mac book. Unable to pull Windows image as Docker run time is set to linux, and there is no option to change it to windows. But Docker desktop in windows gives option to change runtime from linux to windows. Is there a command that i can use to switch runtime on Docker Desktop on mac?
docker pull mcr.microsoft.com/windows/servercore:2004-amd64[1]
References mcr.microsoft.com/windows/servercore:2004-amd64 (mcr.microsoft.com)