개발

docker. The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

ttoance 2024. 8. 20. 01:04

 

이슈 : docker run으로 실행했더니 warning이 발생. 실행이 아예 안된줄 알았지만, 실행은 되어 있었다. 

docker run --name kubia-container -p 8080:8080 -d kubia
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
bc3d8f1e58f6e9c5aefd88e7f743f887dc09084685c52b55a0e5cdb03412db1f

 

 

해결책 : dockerfile의 node를 8로 올리고 다시 빌드하니까 되었다. 

docker stop kabia-container
docker rm kabia-contaiiner
docker run --name kubia-container -p 8080:8080 -d kubia # 다시 실행

 

 

하지만 뒤에 -platform 명령어로 해결이 가능하다고도 한다. 

Docker on Mac M1 gives: "The requested image's platform (linux/amd64) does not match the detected host platform" - Stack Overflow

 

Docker on Mac M1 gives: "The requested image's platform (linux/amd64) does not match the detected host platform"

I want to run a docker container for Ganache on my MacBook M1, but get the following error: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) a...

stackoverflow.com

 

반응형