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
This error message typically indicates that the Docker image you’re trying to build or run does not have a compatible architecture or operating system with your current environment. 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/
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'
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”
Other options that you could look at
- Check the Dockerfile and make sure that the base image you are using supports the architecture and operating system of your current environment.
- Verify that you have selected the correct platform when building the Docker image. You can do this by adding the
--platformoption followed by the platform name to the
- Check your Docker configuration and ensure that you have the necessary tools and dependencies installed for your target platform.
- If you’re using Docker Desktop on macOS or Windows, ensure that you have enabled experimental features and set the correct architecture for your target platform.
- Try building the Docker image on a different machine or using a different base image that supports the architecture and operating system of your current environment.
- If none of these steps work, you may need to seek help from the Docker community or consult the documentation for the specific Docker image you are trying to use.