상황
M1X 맥북 프로에서 docker build 후 로컬 테스트 완료
AWS ECR에 배포 후 Fargate로 작업 실행시 로그에 아래와 같이 남음
standard_init_linux.go:228: exec user process caused: exec format error
해결
아무래도 이해가 안되서 검색을 해보니... M1X 아키텍처 문제인듯 합니다.
docker build시 명령어를 아래와 같이 사용하면 됩니다.
docker buildx build --platform=linux/amd64 -t xxx xxx
'TIL' 카테고리의 다른 글
[React Native] cli.init is not a function (0) | 2023.01.28 |
---|---|
[Sharp] VipsJpeg: Invalid SOS parameters for sequential JPEG (0) | 2022.12.10 |
[CSS] 터치 이벤트 후 호버 상태 문제(hover state issue after touch event) (0) | 2022.12.01 |
A non-serializable value was detected in an action, in the path: `register`. ~ 에러 해결 (0) | 2022.09.29 |
Next.js 에서 Script가 여러개 추가되는 문제 (0) | 2022.07.13 |
댓글