본문 바로가기
Dev Error

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

by 개발이 체질인 나그네 2023. 6. 3.
반응형
The requested image's platform (linux/amd64) does not match the detected host platform 
(linux/arm64/v8) and no specific platform was requested

맥OS에서 Docker 이미지를 가져오는 과정에서 위와 같은 애러가 났습니다.

 

이유를 찾아보니, 현재 저는 MacOS M1을 사용하지만, 가져오는 도커 이미지의 플랫폼(OS)는 M1의 arm64를 지원하지 않은 모양입니다.

 

docker build --platform linux/arm64  [어쩌구 저쩌구]

위와 같은 docker build 명령어 전에 --platfrom linux/arm64를 넣고 이어서 명령어를 실행하면 호환이 되도록 이미지를 받아(pull)옵니다. *다만 linux/arm64를 아예 지원하지 않는 도커 이미지인 경우, 빌드되지 않습니다.

 

 

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

 

반응형

댓글