StefanScherer / dockerfiles-windows

Various Dockerfiles for Windows Containers
MIT License
1.1k stars 396 forks source link

Please update the dockertls images to newer baseimages #450

Open kirkone opened 3 years ago

kirkone commented 3 years ago

Hi,

as this is mentioned in the current documentation by Microsoft it would be nice to have this also working with newer host servers.

I tryed it on Windows Server 20H2 and get the following error:

The container operating system does not match the host operating system

Please let me know if I can help in any way.

StefanScherer commented 3 years ago

Hi @kirkone , I agree it hasn‘t been updated for a while. but you could try and run it in hyperv isolation mode.

kirkone commented 3 years ago

Hello @StefanScherer

I solved it by building my own Image based on your docker file with this base Image:

mcr.microsoft.com/powershell:nanoserver-2004

And I had to replace containeruser with containeradmin because of the changes in the windows image.

StefanScherer commented 3 years ago

Thanks for your feedback. I‘m glad you could build an image that better works for your host OS version.