Docker

Author: [ jLeopoldA ]

System Requirements

CPU
OS
RAM
DISK

Minimum: 4 Cores

Ubuntu 24.04.2 LTS

Minimum: 32GB

1TB

Recommended: 8 Cores

Ubuntu 24.04.2 LTS

Recommended: 128GB

1TB

circle-info

The Sonic Archive Node has a size of 588GB as of 3/12/2025.

circle-exclamation

Pre-Requisites

Update System

sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install -y git gcc make --fix-missing

Install GO

triangle-exclamation
# Remove previous installation of GO
rm -rf /usr/local/go # For GO installations locacated within /usr/local/go
rm -rf /usr/local/bin/go # For GO installations located within /usr/local/bin/go

# Download GO
wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz

# Extract and place within /usr/local
tar -xzf go1.22.0.linux-amd64.tar.gz -C /usr/local && rm go1.22.0.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
source ~/.bashrc

Install Docker & Docker-Compose

Firewall Configuration

Set Explicit UFW Rules

Allow SSH

Allow Connections for Sonic

Enable Firewall

View Current UFW Rules / Status

Set up Sonic

Create Directories

Install Sonic

Download Sonic

Build Sonic

Prime Sonic State DB

Set up Docker

Create Dockerfile

Create docker-compose.yml

Run Sonic Archive Node

Start Sonic Node

Get Logs from Sonic Node

Query Sonic Node

Check Sync Status

Get Current Block Number of Node

References

Last updated