0

I am running Windows 10 Enterprise (64-bit) in virtual environment. I have installed Docker and VirtualBox in it. For my work, I need a Windows container base image (with .NET support). I tried getting one at https://hub.docker.com/_/microsoft-windows-base-os-images?tab=reviews But, could not pull a Windows or Windows Server Core image.

Please let me know if you know how to get and use Windows container base image.

  • https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/container-base-images – brc-dd Jul 17 '20 at 06:39
  • _"But, could not pull a Windows or Windows Server Core image."_ Can you elaborate the problems you faced in pulling the image? – brc-dd Jul 17 '20 at 06:42
  • _"Windows requires the host OS version to match the container OS version. If you want to run a container based on a newer Windows build, make sure you have an equivalent host build. Otherwise, you can use Hyper-V isolation to run older containers on new host builds."_ Did you properly read this and select the proper image tag? – brc-dd Jul 17 '20 at 06:44
  • Now I was able to pull the image, by using the following line in my Dockerfile, FROM mcr.microsoft.com/windows:1909. I was using latest tag, instead. – Amitabh Srivastava Jul 17 '20 at 18:31
  • I am posting it as an answer. Kindly accept it. – brc-dd Jul 18 '20 at 06:48

1 Answers1

0

According to the documentation available on docker-hub:

Windows requires the host OS version to match the container OS version. If you want to run a container based on a newer Windows build, make sure you have an equivalent host build. Otherwise, you can use Hyper-V isolation to run older containers on new host builds.

You are probably trying to pull a non-compliant image. Check your windows version and accordingly select the proper tag to pull.

brc-dd
  • 10,788
  • 3
  • 47
  • 67