Windows Image issue while running docker yaml file

So, i have been encountering this error in docker.

Docker: no matching manifest for linux/amd64 in the manifest list entries while trying to run my docker yaml file to build a windows container.
The image i am using is " mcr.microsoft.com/windows/servercore:ltsc2022

I have tried switching to window containers on Docker Desktop, enabled experimental : true in the docker engine. Have also tried other similar windows images, nothing is working out.

It would be great if someone would help me in this issue.

The version of my windows is Microsoft Windows [Version 10.0.19045.5011].

It looks like it didn’t work. Try again and confirm that you see “Switch to Liux containers” in the menu, otherwise you are still using Linux containers. That is what linux/amd64 means in the error message.

If you tried running commands from a WSL2 distribution, it could be important to run the commands in Powershell or command line. Otherwise you could still connect to the virtual machine running Linux containers.

1 Like

Thank you for your response @rimelek . I had made sure that “Switch to Linux Containers” was visible, also the commands were being executed from the command line itself.

I tried again today, i am getting a similar error no matching manifest for windows/amd64 10.0.19045 in the manifest list entries .

I have tried all the possible images pertaining to the current version of windows installed in my device i.e Microsoft Windows [Version 10.0.19045.5011] but still no luck. Any other suggestion which i can try out .

So now you are using Windows containers and you still get an error message, but at least about a manifest for Windows.

How do you run the container exactly? With what command?

Please share the output of the following commands too:

docker info
docker version

Remove any private detail from the output before you share it like registry IPs or user names.