How to run docker on Windows Server 2022 Preview?

%3CLINGO-SUB%20id%3D%22lingo-sub-2183807%22%20slang%3D%22en-US%22%3EHow%20to%20run%20docker%20on%20Windows%20Server%202022%20Preview%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2183807%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20installed%20Windows%20Server%202022%20Preview%20Build%2020298%2C%20and%20it%20does%20not%20seem%20to%20include%20the%20docker%20command.%20I%20would%20like%20to%20run%20%22docker%20build%22%20and%20%22docker%20run%22%20from%20PowerShell%2C%20but%20I%20get%20the%20error%3A%20%22The%20term%20'docker%20is%20not%20recognized...%22.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20how%20to%20install%20the%20docker%20command%20on%20Windows%20Server%202022%20Preview%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETony%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2183807%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EContainers%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2185189%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20run%20docker%20on%20Windows%20Server%202022%20Preview%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2185189%22%20slang%3D%22en-US%22%3Ethis%20guide%20might%20help%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvirtualization%2Fwindowscontainers%2Fquick-start%2Fset-up-environment%3Ftabs%3DWindows-Server%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvirtualization%2Fwindowscontainers%2Fquick-start%2Fset-up-environment%3Ftabs%3DWindows-Server%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2185444%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20run%20docker%20on%20Windows%20Server%202022%20Preview%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2185444%22%20slang%3D%22en-US%22%3ETony%20-%20thanks%20for%20the%20interest!%3CBR%20%2F%3E%3CBR%20%2F%3EA%20few%20steps%20here%3A%3CBR%20%2F%3E1)%20Set%20up%20your%20environment%20on%20that%20build%2C%20following%20the%20instructions%20here%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvirtualization%2Fwindowscontainers%2Fquick-start%2Fset-up-environment%3Ftabs%3DWindows-Server%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvirtualization%2Fwindowscontainers%2Fquick-start%2Fset-up-environment%3Ftabs%3DWindows-Server%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E2)%20Given%20it's%20an%20Insider%20build%2C%20you%20may%20need%20this%20step%20as%20well%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E3)%20Then%20you%20can%20run%20a%20command%20like%20this%20to%20get%20your%20Windows%20Server%202022%20Preview%20container%20images%3A%3CBR%20%2F%3Edocker%20pull%20mcr.microsoft.com%2Fwindows%2Fservercore%2Finsider%3A10.0.20298.1%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20a%20reference%2C%20these%20are%20Docker%20Hub%20Windows%20Server%20Base%20OS%20container%20image%20Insider%20release%20pages%3A%20%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-nanoserver-insider%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-nanoserver-insider%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20curious%20what%20your%20use%20cases%20will%20be.%20What%20features%2Ftechnologies%20are%20you%20planning%20to%20try%20out%3F%3CBR%20%2F%3E%20%3CBR%20%2F%3EWeijuan%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2186859%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20run%20docker%20on%20Windows%20Server%202022%20Preview%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2186859%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F63429%22%20target%3D%22_blank%22%3E%40Weijuan%20Shi%20Davis%3C%2FA%3E%26nbsp%3BThanks%20for%20the%20response.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20following%20the%20instructions%20here%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvirtualization%2Fwindowscontainers%2Fquick-start%2Fset-up-environment%3Ftabs%3DWindows-Server%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvirtualization%2Fwindowscontainers%2Fquick-start%2Fset-up-environment%3Ftabs%3DWindows-Server%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20I%20get%20an%20error%20on%20the%20first%20step%20(%3CSPAN%3EInstall-Module%20-Name%20DockerMsftProvider%20-Repository%20PSGallery%20-Force)%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%3CSPAN%3EPS%20C%3A%5CUsers%5CAdministrator%26gt%3B%20Install-Module%20-Name%20DockerMsftProvider%20-Repository%20PSGallery%20-Force%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EGet-PSGalleryApiAvailability%20%3A%20PowerShell%20Gallery%20is%20currently%20unavailable.%20%26nbsp%3BPlease%20try%20again%20later.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EAt%20C%3A%5CProgram%20Files%5CWindowsPowerShell%5CModules%5CPowerShellGet%5C1.0.0.1%5CPSModule.psm1%3A1748%20char%3A9%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%2B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Get-PSGalleryApiAvailability%20-Repository%20%24Repository%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%2B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20CategoryInfo%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3A%20InvalidOperation%3A%20(%3A)%20%5BGet-PSGalleryApiAvailability%5D%2C%20InvalidOperationException%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20PowerShellGalleryUnavailable%2CGet-PSGalleryApiAvailability%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3ENuGet%20provider%20is%20required%20to%20continue%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EPowerShellGet%20requires%20NuGet%20provider%20version%20'2.8.5.201'%20or%20newer%20to%20interact%20with%20NuGet-based%20repositories.%20The%20NuGet%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3Bprovider%20must%20be%20available%20in%20'C%3A%5CProgram%20Files%5CPackageManagement%5CProviderAssemblies'%20or%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E'C%3A%5CUsers%5CAdministrator%5CAppData%5CLocal%5CPackageManagement%5CProviderAssemblies'.%20You%20can%20also%20install%20the%20NuGet%20provider%20by%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3Brunning%20'Install-PackageProvider%20-Name%20NuGet%20-MinimumVersion%202.8.5.201%20-Force'.%20Do%20you%20want%20PowerShellGet%20to%20install%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3Eand%20import%20the%20NuGet%20provider%20now%3F%3C%2FFONT%3E%3C%2FDIV%3E%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%3CSPAN%3E%5BY%5D%20Yes%20%26nbsp%3B%5BN%5D%20No%20%26nbsp%3B%5BS%5D%20Suspend%20%26nbsp%3B%5B%3F%5D%20Help%20(default%20is%20%22Y%22)%3A%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EBTW%2C%20the%20next%20step%20suggested%20here%2C%20installing%20%22NuGet%22%20fails%20as%20well%2C%20even%20though%20the%20connectivity%20to%20this%20system%20is%20fine%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%3CSPAN%3E%5BY%5D%20Yes%20%26nbsp%3B%5BN%5D%20No%20%26nbsp%3B%5BS%5D%20Suspend%20%26nbsp%3B%5B%3F%5D%20Help%20(default%20is%20%22Y%22)%3A%20Y%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EWARNING%3A%20Unable%20to%20download%20from%20URI%20'%3CA%20href%3D%22https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkID%3D627338%26amp%3Bclcid%3D0x409%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkID%3D627338%26amp%3Bclcid%3D0x409%3C%2FA%3E'%20to%20''.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EWARNING%3A%20Unable%20to%20download%20the%20list%20of%20available%20providers.%20Check%20your%20internet%20connection.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EPackageManagement%5CInstall-PackageProvider%20%3A%20No%20match%20was%20found%20for%20the%20specified%20search%20criteria%20for%20the%20provider%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E'NuGet'.%20The%20package%20provider%20requires%20'PackageManagement'%20and%20'Provider'%20tags.%20Please%20check%20if%20the%20specified%20package%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3Ehas%20the%20tags.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EAt%20C%3A%5CProgram%20Files%5CWindowsPowerShell%5CModules%5CPowerShellGet%5C1.0.0.1%5CPSModule.psm1%3A7468%20char%3A21%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%2B%20...%20%26nbsp%3B%20%26nbsp%3B%20%24null%20%3D%20PackageManagement%5CInstall-PackageProvider%20-Name%20%24script%3AN%20...%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%2B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20CategoryInfo%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3A%20InvalidArgument%3A%20(Microsoft.Power...PackageProvider%3AInstallPackageProvider)%20%5BInstall-Pac%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3BkageProvider%5D%2C%20Exception%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20NoMatchFoundForProvider%2CMicrosoft.PowerShell.PackageManagement.Cmdlets.InstallPackagePro%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3Bvider%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EPackageManagement%5CImport-PackageProvider%20%3A%20No%20match%20was%20found%20for%20the%20specified%20search%20criteria%20and%20provider%20name%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E'NuGet'.%20Try%20'Get-PackageProvider%20-ListAvailable'%20to%20see%20if%20the%20provider%20exists%20on%20the%20system.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EAt%20C%3A%5CProgram%20Files%5CWindowsPowerShell%5CModules%5CPowerShellGet%5C1.0.0.1%5CPSModule.psm1%3A7474%20char%3A21%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%2B%20...%20%26nbsp%3B%20%26nbsp%3B%20%24null%20%3D%20PackageManagement%5CImport-PackageProvider%20-Name%20%24script%3ANu%20...%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%2B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20CategoryInfo%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3A%20InvalidData%3A%20(NuGet%3AString)%20%5BImport-PackageProvider%5D%2C%20Exception%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20NoMatchFoundForCriteria%2CMicrosoft.PowerShell.PackageManagement.Cmdlets.ImportPackageProv%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3Bider%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EWARNING%3A%20Unable%20to%20download%20from%20URI%20'%3CA%20href%3D%22https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkID%3D627338%26amp%3Bclcid%3D0x409%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkID%3D627338%26amp%3Bclcid%3D0x409%3C%2FA%3E'%20to%20''.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EWARNING%3A%20Unable%20to%20download%20the%20list%20of%20available%20providers.%20Check%20your%20internet%20connection.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EPackageManagement%5CGet-PackageProvider%20%3A%20Unable%20to%20find%20package%20provider%20'NuGet'.%20It%20may%20not%20be%20imported%20yet.%20Try%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E'Get-PackageProvider%20-ListAvailable'.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EAt%20C%3A%5CProgram%20Files%5CWindowsPowerShell%5CModules%5CPowerShellGet%5C1.0.0.1%5CPSModule.psm1%3A7478%20char%3A30%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%2B%20...%20tProvider%20%3D%20PackageManagement%5CGet-PackageProvider%20-Name%20%24script%3ANuGet%20...%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%2B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20CategoryInfo%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3A%20ObjectNotFound%3A%20(Microsoft.Power...PackageProvider%3AGetPackageProvider)%20%5BGet-PackageProvi%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3Bder%5D%2C%20Exception%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20UnknownProviderFromActivatedList%2CMicrosoft.PowerShell.PackageManagement.Cmdlets.GetPacka%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3BgeProvider%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EInstall-Module%20%3A%20NuGet%20provider%20is%20required%20to%20interact%20with%20NuGet-based%20repositories.%20Please%20ensure%20that%20'2.8.5.201'%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3Eor%20newer%20version%20of%20NuGet%20provider%20is%20installed.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3EAt%20line%3A1%20char%3A1%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%2B%20Install-Module%20PowerShellGet%20-RequiredVersion%202.2.4%20-SkipPublisherChe%20...%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20CategoryInfo%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3A%20InvalidOperation%3A%20(%3A)%20%5BInstall-Module%5D%2C%20InvalidOperationException%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%230000FF%22%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20CouldNotInstallNuGetProvider%2CInstall-Module%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%3CSPAN%3EPS%20C%3A%5CUsers%5CAdministrator%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAny%20ideas%20what%20might%20be%20wrong%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ETony%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2214980%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20run%20docker%20on%20Windows%20Server%202022%20Preview%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2214980%22%20slang%3D%22en-US%22%3ETony%20-%20I%20couldn't%20tell%20why%20this%20failed%20for%20you.%20Can%20you%20try%20spinning%20out%20another%20VM%3F%20I%20didn't%20have%20any%20trouble%20running%20the%20installation%20scripts%20either%20using%20a%20VM%20on%20Azure%20directly%20or%20downloading%20the%20VHDX%20file%20and%20spinning%20up%20a%20local%20VM.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2218705%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20run%20docker%20on%20Windows%20Server%202022%20Preview%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2218705%22%20slang%3D%22en-US%22%3ETony%20-%20I%20tried%20again%20today%20and%20was%20able%20to%20run%20it%20successfully.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2241438%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20run%20docker%20on%20Windows%20Server%202022%20Preview%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2241438%22%20slang%3D%22en-US%22%3E%3CP%3EI%20identified%20the%20problem.%20It%20turns%20out%20that%20our%20corporate%20Zscaler%20security%20was%20intercepting%20certificates%2C%20blocking%20Install-Module%20from%20connecting%20with%20PSGallery.%20I%20reconfigured%20the%20VM%20to%20use%20a%20bridged%20network%20instead%20of%20a%20NAT%20(which%20Zscaler%20controls)%2C%20and%20I%20was%20able%20to%20install%20the%20docker%20packages.%20Everything%20is%20working%20correctly%20now.%20Thanks%20for%20your%20help!%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%2C%3CBR%20%2F%3E%3CBR%20%2F%3ETony%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2242773%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20run%20docker%20on%20Windows%20Server%202022%20Preview%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2242773%22%20slang%3D%22en-US%22%3EGlad%20you%20figured%20it%20out!%3C%2FLINGO-BODY%3E
New Contributor

Hello,

 

I installed Windows Server 2022 Preview Build 20298, and it does not seem to include the docker command. I would like to run "docker build" and "docker run" from PowerShell, but I get the error: "The term 'docker is not recognized...". 

 

Does anyone know how to install the docker command on Windows Server 2022 Preview?

 

Thanks,

 

Tony

7 Replies
Tony - thanks for the interest!

A few steps here:
1) Set up your environment on that build, following the instructions here:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tab...

2) Given it's an Insider build, you may need this step as well:
https://hub.docker.com/_/microsoft-windows-servercore-insider

3) Then you can run a command like this to get your Windows Server 2022 Preview container images:
docker pull mcr.microsoft.com/windows/servercore/insider:10.0.20298.1

As a reference, these are Docker Hub Windows Server Base OS container image Insider release pages:
https://hub.docker.com/_/microsoft-windows-servercore-insider
https://hub.docker.com/_/microsoft-windows-nanoserver-insider

I am curious what your use cases will be. What features/technologies are you planning to try out?

Weijuan

@Weijuan Shi Davis Thanks for the response.

 

I tried following the instructions here:

https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tab...

 

However, I get an error on the first step (Install-Module -Name DockerMsftProvider -Repository PSGallery -Force):

 

PS C:\Users\Administrator> Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

Get-PSGalleryApiAvailability : PowerShell Gallery is currently unavailable.  Please try again later.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1748 char:9
+         Get-PSGalleryApiAvailability -Repository $Repository
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-PSGalleryApiAvailability], InvalidOperationException
    + FullyQualifiedErrorId : PowerShellGalleryUnavailable,Get-PSGalleryApiAvailability
 
 
NuGet provider is required to continue
PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet
 provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or
'C:\Users\Administrator\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the NuGet provider by
 running 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install
and import the NuGet provider now?

[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"):

 

 

BTW, the next step suggested here, installing "NuGet" fails as well, even though the connectivity to this system is fine:

 

[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y

WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.
WARNING: Unable to download the list of available providers. Check your internet connection.
PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider
'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package
has the tags.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7468 char:21
+ ...     $null = PackageManagement\Install-PackageProvider -Name $script:N ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Power...PackageProvider:InstallPackageProvider) [Install-Pac
   kageProvider], Exception
    + FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackagePro
   vider
 
PackageManagement\Import-PackageProvider : No match was found for the specified search criteria and provider name
'NuGet'. Try 'Get-PackageProvider -ListAvailable' to see if the provider exists on the system.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7474 char:21
+ ...     $null = PackageManagement\Import-PackageProvider -Name $script:Nu ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (NuGet:String) [Import-PackageProvider], Exception
    + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.ImportPackageProv
   ider
 
WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.
WARNING: Unable to download the list of available providers. Check your internet connection.
PackageManagement\Get-PackageProvider : Unable to find package provider 'NuGet'. It may not be imported yet. Try
'Get-PackageProvider -ListAvailable'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7478 char:30
+ ... tProvider = PackageManagement\Get-PackageProvider -Name $script:NuGet ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power...PackageProvider:GetPackageProvider) [Get-PackageProvi
   der], Exception
    + FullyQualifiedErrorId : UnknownProviderFromActivatedList,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPacka
   geProvider
 
Install-Module : NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201'
or newer version of NuGet provider is installed.
At line:1 char:1
+ Install-Module PowerShellGet -RequiredVersion 2.2.4 -SkipPublisherChe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Install-Module], InvalidOperationException
    + FullyQualifiedErrorId : CouldNotInstallNuGetProvider,Install-Module
 

PS C:\Users\Administrator

 

 

Any ideas what might be wrong?

 

Thanks,

 

Tony

 

 

Tony - I couldn't tell why this failed for you. Can you try spinning out another VM? I didn't have any trouble running the installation scripts either using a VM on Azure directly or downloading the VHDX file and spinning up a local VM.
Tony - I tried again today and was able to run it successfully.

I identified the problem. It turns out that our corporate Zscaler security was intercepting certificates, blocking Install-Module from connecting with PSGallery. I reconfigured the VM to use a bridged network instead of a NAT (which Zscaler controls), and I was able to install the docker packages. Everything is working correctly now. Thanks for your help!

Regards,

Tony

Glad you figured it out!