반응형
mac m2에서 hadoop edge 환경 image docker run 후 hdfs 실행 시 발생
- base image: rockylinux:8.9
- 설치 : wget, python, sudo, ansible
해결 방법: FROM에 platform 추가
FROM --platform=linux/amd64 rockylinux:8.9
x86_64 architecture에서 compile된 app을 arm64 base의 image에서 수행시키려고 해서 에러가 발생
사족.
처음에 alpine으로 시도하였는데, alpine은 platform 옵션을 줘도 동일 에러가 발생했다.
추가 라이브러리를 설치해야 할 것으로 보이며 alpine image에 git이 포함되기는 했으나 image 파일이 50mb정도밖에 차이가 안나서 그냥 rocky나 ubuntu 쓰는 것이 정신적으로 이로울 것 같다.
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
I have a Rancher Deskop(dockerd) on M1 MacOS and when I am trying to build below dockerfile I am getting an error such as below. Here is the command how I am trying to build the image docker build ...
stackoverflow.com
반응형
'Ecosystem > docker, k8s' 카테고리의 다른 글
local k8s 테스트 환경 구축 - kind, k9s (0) | 2024.01.24 |
---|