Docker on Mac M1 gives: “The requested image’s platform (linux/amd64) does not match the detected host platform”
If you’re planning to run the image in your laptop, you need to build it for the cpu architecture of that particular machine. You can provide the –platform option to docker build (or even to docker-compose) to define the target platform you want to build the image for. For example: docker build –platform linux/arm64 .