Hi team, I am facing some issue. I have a code wr...
# questions
f
Hi team, I am facing some issue. I have a code written with Kedro in a Docker (that is built on docker image) that have refused to run. So far the I can run
make docker-build
but cannot run
make docker-run
without the code failing. I get the below error when I try to run the docker-run command
Copy code
docker run -p 80:80 trc-develop
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Any idea as to what could be happening here?
n
This is a warning rather than an error, does it stop your program?
f
@Nok Lam Chan yes the program stops running whenever the warning appears
n
I suggest to follow the stackoverflow post, it seem to be a general Docker issue
f
Yea thank you so much. Let me try the solution on stackoverflow first. Will let you know if that fixes it
👍🏼 1
m
It’s indeed a generic Docker image. Docker images are specific to the system CPU architecture (amd vs arm). As the error message mentions, you are using an image build for the wrong architecture. On M1 for example, you have to specify the target architecture (amd64) and you can do so by setting the correct flags of your docker build command.
K 1