Failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest

Trying to run the Azure Data Factory Integration Runtime in Windows Container Sample from https://github.com/Azure/Azure-Data-Factory-Integration-Runtime-in-Windows-Container repo according to the guide of creating an integrated runtime for Azure Data Factory from https://docs.microsoft.com/en-us/azure/data-factory/how-to-run-self-hosted-integration-runtime-in-windows-container give a failed to run dockerfile in Docker Desktop.

failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest

When trying to run the docker command

docker build . -t "dockerImage"

Looking closer at the issue it’s simple because of the operating system. “no match for platform in manifest”. The Docker Desktop is running the wrong OS.

Solution

Switching Docker Desktop to use windows containers instead.

Right click on the Docker icon in your system tray icons, then click on “Switch to Windows containers”