The container operating system does not match the host operating system

Madura Dissanayake 1 Reputation point
2021-04-27T08:18:07.913+00:00

Hi

I'm using AKS and trying to start a windows container but it gives me error "The container operating system does not match the host operating system" but I created a windows node pool in my configuration and which was used inside deployment.yaml.

91635-image.png

Can anyone guide me how can I resolve this issue ?
I'm using mcr.microsoft.com/dotnet/framework/aspnet:4.7.2-windowsservercore-ltsc2016 as the docker image.

Thanks.

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,538 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 47,471 Reputation points Microsoft Employee Moderator
    2021-04-27T11:50:33.033+00:00

    @Madura Dissanayake Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    There is a similar threads discussion in SO forum here and here, please refer to the suggestion and troubleshooting steps. Which provide some insights on your query!

    If you still find any difficulties, please let us know, I would like to work closer on this scenario.

    Windows container version compatibility

    Hope this helps!

    --------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.