Nodes/theta/docker

theta

Theta Docker 노드 가이드 (Guardian Node)

2분 읽기 · docker

list목차(5)

Theta Docker 노드 가이드 (Guardian Node)

공식 thetalabsofficial/theta-protocol-ledger 이미지를 사용해 Guardian Node를 실행합니다. 일반 사용자가 가장 쉽게 운영할 수 있는 노드 유형입니다.

빠른 실행 (Mainnet Guardian)

# 데이터 디렉토리
sudo mkdir -p /data/theta
sudo chown -R 1000:1000 /data/theta

docker run -d --name theta-guardian \
  --restart unless-stopped \
  -p 16888:16888 -p 17888:17888 \
  -v /data/theta:/mnt/theta \
  thetalabsofficial/theta-protocol-ledger:mainnet \
  /app/bin/theta start \
  --config=/app/integration/mainnet/guardian/config.yaml \
  --password=<WALLET_PASSWORD>
  • 16888: RPC
  • 17888: P2P

지갑 준비

# 컨테이너 내부에서 지갑 생성
docker exec -it theta-guardian /app/bin/thetacli key new

# 또는 기존 키를 마운트
docker run -v /path/to/keys:/mnt/theta/key ...

스냅샷 사용

Guardian Node는 공식 스냅샷으로 시작할 수 있습니다.

상태 확인

# RPC 호출
curl -s http://localhost:16888/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","method":"theta.GetStatus","params":[{}],"id":1}' | jq

참고

theta 다른 챕터