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.

Docker Desktop with dockerfile

It is one of the fastest and wildly used containerize applications for Windows, Linux and Mac. https://www.docker.com/products/docker-desktop/

dockerfile

When running your Dockerfile it’ll be added to Images in Docker Desktop. A basic Dockerfile hello world example. This will print our Hello world.

# Comment
RUN echo 'Hello world'

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”

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