본문 바로가기

mac

macOS apple silicon arm64에서 Docker 컨테이너 colima 설치시 에러가 나는 경우

Docker 컨테이너인 Docker Desktop의 기업용 라이선스로 인해서 회사에서는 Docker Desktop 설치가 부담이됩니다.

알려진대로 회사의 임직원이 250명 이상 또는 1,000만 달러 이상인 경우는 유료 라이선스에 가입해야합니다.

*Docker Desktop is free to use as part of the Docker Personal subscription for individuals, non-commercial open source developers, students and educators, and small businesses of fewer than than 250 employees AND less than $10 million in revenue. Commercial use of Docker Desktop at a company of more than 250 employees OR more than $10 million in annual revenue requires a paid subscription (Pro, Team, or Business).

 

Docker Desktop 대신 사용할 수 있는 컨테이너들 중 colima를 apple silicon arm64 cpu에서 설치 후 실행을 하면 다음과 같은 에러 메시지를 출력하면서 실행이 안됩니다.

$ /usr/local/opt/colima/bin/colima start -f
 FATA[0000] limactl is running under rosetta, please reinstall lima with native arch 
 FATA[0002] lima compatibility error: error checking Lima version: exit status 1

 

테스트를 위해서 Docker Desktop를 설치하는 경우 동작이 잘 되는데 colima를 설치 후 실행만 하면 위와 같이 에러가 발생하는데요.

colima를 rosetta에서 실행한 적이 없는데 왜 이런 에러가 발생하는지 잠시 고민을 할 수 있습니다.

 

개발시 서버와의 호환성을 위해서 homebrew가 intel x86-64용으로 rosetta를 통해서 사용하는 경우 homebrew가 colima와 lima를 intel x86-64 용으로 설치하는 바람에 실행에서 에러가 발생하는 케이스입니다.

  • 기존에 설치한 intel x86-64용 colima, 그리고 같이 설치된 패키지들을 모두 삭제합니다.
  • apple silicon arm64용 homebrew를 설치합니다.
  • apple silicon arm64용 homebrew를 통해서 colima를 설치합니다.

위와 같이 하면 문제없이 Docker 컨테이너인 colima를 정상적으로 실행시킬 수 있습니다.