Files
nanoclaw/docs/APPLE-CONTAINER-BUILDER-ISSUE.md
woozu-shin ef1aff1532
Some checks failed
Bump version / bump-version (push) Has been cancelled
Sync upstream & merge-forward skill branches / sync-and-merge (push) Has been cancelled
Merge-forward skill branches / merge-forward (push) Has been cancelled
Update token count / update-tokens (push) Has been cancelled
Add MiniMax API support, Apple Container runtime, and stop script
- Add ASSISTANT_NAME and claude-minimax.sh for MiniMax API usage
- Switch container runtime from Docker to Apple Container
- Add CJK character restriction notice to CLAUDE.md files
- Add stop.sh for graceful shutdown

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-28 14:31:55 +09:00

2.3 KiB

Apple Container Builder 네트워크 문제

문제概况

Apple Container 빌더에서 docker build 시 DNS resolution 실패로 패키지 설치를 못하는 문제.

E: Unable to locate package chromium
E: Unable to locate package fonts-liberation
...
Temporary failure resolving 'deb.debian.org'

环境

  • macOS Darwin 25.3.0 (Apple Silicon)
  • Apple Container runtime: 실행 중 (Kata Containers 커널 설치 완료)
  • Docker (OrbStack): 사용 가능
  • 빌드 명령: ./container/build.sh (runtime: container)

原因分析

Apple Container 빌더는 Linux VM 내부에서 실행되며, 해당 VM이 호스트의 DNS 설정을 제대로 읽지 못함.

container builder ls
# 빌더 VM의 네트워크가 호스트 DNS를 사용하지 않음

尝试过的解决方法

1. 빌더 재시작

container builder stop && container builder rm && container builder start
./container/build.sh

结果: 실패 (같은 DNS 오류)

2. Docker (OrbStack) 빌드

Docker는 OrbStack을 통해 정상 작동하므로, 당분간 Docker로 빌드 가능.

潜在的 해결책

방법 1: 빌더 VM에 DNS 서버 직접 지정

Apple Container 빌더의 VM 내부 설정을 확인해야 함.

# 빌더 VM 내부에서 확인 (가능한 경우)
container builder exec <builder-name> cat /etc/resolv.conf

방법 2: Docker를 빌드에만 사용 (실행은 Apple Container)

container/build.sh에서 빌드만 Docker로, 런타임만 Apple Container로 분리.

방법 3: Apple Container 빌더 재설치

container builder stop
container builder rm --all
# Apple Container 재설치

현재 상태

구분 상태
Apple Container 런타임 실행 중
Kata Containers 커널 설치 완료
빌더 네트워크 DNS 오류
Docker (OrbStack) 빌드 정상

권장 작업

  1. Apple Container 빌더 DNS 문제는 별도 조사 필요
  2. 당분간 Docker로 빌드: docker build -t nanoclaw-agent:latest -f container/Dockerfile container/
  3. 빌더 VM 네트워크 설정 수정 방법을 Apple Container 문서에서 확인

相关文件

  • src/container-runtime.ts — Apple Container 런타임 설정
  • container/build.sh — 빌드 스크립트 (runtime: container)