새소식

반응형
Tool/DocKer

Docker "WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested" 해결 방법

  • -
반응형

2024-01-17


사진: Unsplash 의 Thant Aung


1. 원인

 

mac 운영체제 내에서 플랫폼을 빌드하거나 실행할 때 linux/arm64/v8에서 이미지가 실행되게 되는데 이로 인해 현재 이미지의 운영체제 linux/amd64와 같지 않아 발생하는 문제이다.


2. 방법

 

아래와 같이 빌드 및 실행 시 명확한 운영체제를 지정(--platform linux/amd64)해주면 해당 문제를 해결할 수 있다.

# docker build --platform linux/amd64 --build-arg [optional] -t [아이디정보]/[저장소정보]
# docker push [아이디정보]/[저장소정보]
# docker run --platform linux/amd64 [아이디정보]/[저장소정보]

3. 출처

https://stackoverflow.com/questions/69054921/docker-on-mac-m1-gives-the-requested-images-platform-linux-amd64-does-not-m

 

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


메인 이미지 출처 : 사진: UnsplashThant Aung  

 

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.