Sign inSign up

svetekllc/sonic

By svetekllc

Updated 3 days ago

Docker image for running a Sonic RPC or archive node from official Sonic release binaries.

Image
Developer tools
0

409

svetekllc/sonic repository overview

Sonic Docker Image

Docker image for running a Sonic node from official sonicd and sonictool release binaries.

What Is Included

  • sonicd downloaded from the official Sonic release for the selected tag
  • sonictool downloaded from the same release
  • Non-root runtime user (UID=10001, GID=10001 by default)
  • Default data directory: /sonic

Exposed Ports

  • 18545/tcp for HTTP JSON-RPC
  • 18546/tcp for WebSocket JSON-RPC
  • 5050/tcp for Sonic P2P
  • 5050/udp for Sonic P2P

Run

Example:

docker run -d \
  --name sonic-node \
  -p 18545:18545 \
  -p 18546:18546 \
  -p 5050:5050/tcp \
  -p 5050:5050/udp \
  -v /opt/sonic:/sonic \
  svetekllc/sonic:v2.1.6 \
  --datadir=/sonic \
  --http \
  --http.addr=0.0.0.0 \
  --http.port=18545 \
  --http.api=eth,web3,net,txpool,abft,dag,trace,debug \
  --http.vhosts=* \
  --http.corsdomain=* \
  --ws \
  --ws.addr=0.0.0.0 \
  --ws.port=18546 \
  --ws.api=eth,web3,net,txpool,abft,dag,trace,debug \
  --ws.origins=* \
  --port=5050

Image Behavior

  • The image entrypoint is sonicd
  • The working directory is /sonic
  • The image does not create or manage chain data automatically
  • Archive/RPC database priming should be done with sonictool genesis

Source

Tag summary

Content type

Image

Digest

sha256:582a92381

Size

107.3 MB

Last updated

3 days ago

docker pull svetekllc/sonic:v2.2.2