Forum Discussion
How to run docker on Windows Server 2022 Preview?
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?tabs=Windows-Server
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?tabs=Windows-Server
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
[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
PS C:\Users\Administrator
Any ideas what might be wrong?
Thanks,
Tony
- Weijuan Shi DavisMar 17, 2021Iron ContributorTony - I tried again today and was able to run it successfully.
- tonyiamsMar 28, 2021Copper Contributor
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- Weijuan Shi DavisMar 29, 2021Iron ContributorGlad you figured it out!
- Weijuan Shi DavisMar 16, 2021Iron ContributorTony - 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.