에러해결

[에러] Docker the image uses arm64 architecture which is not supported

양쏘쏘 2024. 6. 10. 10:38
728x90
반응형

The image uses arm64 architecture which is not supported.

Koyeb에서 Docker로 배포하려다가 난 에러다. 

 

M1맥북에서 빌드한 이미지 플랫폼과 Koyebd의 플랫폼 환경이 맞지 않아서 발생한 오류이다. 

그래서 이미지 빌드할 때 아래처럼 옵션을 사용해서 플랫폼을 지정하여 빌드해야한다. 

docker build --platform linux/amd64 -t [imageName] .

 

 

 

 

 

728x90