I create Docker image on Windows 10 for an empty .Net Core web app. Using Windows containers on Docker Desktop, of course, and I pulled the Microsoft/dotnet image from Docker repository. Then I register and upload the image to Azure Registry, everything is fine.
Now I go to my Azure registry and use that image -> Run Instance -> and then specify parameters to create a Container Instance....after a while I get this messagege:
OsVersionNotSupported
The Windows version of image 'mytestcontainers.azurecr.io/testdocker:latest' is not supported. The supported Windows versions are: '10.0.14393'.
So obviously it seems as if the Azure container instance cannot run any other Windows but 10.0.14393, but how do I specify that specific Windows version and where?
I have seen that I can pull the Docker image for mcr.microsoft.com/windows/nanoserver and then specify the tag to pull the specific Windows build, but is that the way to do it? Is it going to change the Windows version that Docker is going to use when creating my image with .Net Core runtime? Thanks.